Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How to save file/image at some specific folder.

Question
Vivek Nayak · Dec 31, 2019

How to save file/image at some specific folder.

Hi Team,

I want to save image/file using inter system iris web api.

I am sending file as Base64 formate  in JSON object to api .and I want to save it at D/Images folder.

please refer below code that i was tried.

Obj.OrganizationLogoBase64--> has base64 value of image

Set decode = $System.Encryption.Base64Decode(Obj.OrganizationLogoBase64)

set file = ##class(%Stream.GlobalBinary).%New()

    do file.Write(decode)

#Angular #InterSystems IRIS

Source URL:https://community.intersystems.com/post/how-save-fileimage-some-specific-folder