Discussion
2
Replies
3187
Views
Posted: August 20, 2015
Last activity: September 2, 2015
Closed
Attach Base64 encoded image to Case
Hello,
I have an image stored in a property as a Base 64 encoded string. How can I add this image to the attachments of the case?
Thanks
1) Create an instance of class Rule-File-Binary (Page-New). Say ImagePage.
2) Set all required key properties on ImagePage
3) Set pyFileSource = Base 64 encoded image string
4) Do Obj-Save on ImagePage
5) Create instance of Link-Attachment (AttachmentPage)
6) Set
.pxLinkedRefFrom = pzInsKey of case
.pxLinkedRefTo = ImagePage.pzInskey
7) Obj-Save AttachmentPage