Question
3
Replies
2280
Views
Posted: July 12, 2017
Last activity: July 13, 2017
Closed
Solved
Get case attachment as byte array
I have a PDF attached to my case. How do I get the PDF attachment as a byte array in my activity (in Java code)?
As far as I can tell this is the only way I can resolve this question I posted earlier.
***Updated by moderator: Lochan to add Categories***
In an activity open your attachment instance. To do that, first get the pzInsKey from an Obj-Browse on Data-WorkAttach-File class. Then use Obj-Open-By-Handle to open the whole instance. You will get a property named pyAttachStream which will contain the full byte stream for the file content.