Question
3
Replies
786
Views
Posted: February 13, 2019
Last activity: November 26, 2019
Closed
How to get pyAttachStream from cloudstorage
Hi,
In our application, we are saving the files (Work object attachments) in Cloud Storage.
I want the pyAttachStream of my (image type) attachment to embed into a PDF.
How can I get the pyAttachstream, as it is not saved in Data-WorkAttach-File or anywhere?
Thanks,
Krishna M
Hi,
I found the answer for this, using D_pxGetFile data page we can get the pyAttachStream. by passing the below parameters.
repositoryName: for ex. pegacloudstorage
filePath: the path you configured(you can see this in application rule) filepath+attachmentname
responseType: STRING or STREAM. (If you pass STRING, then you will get the encoded stream)
Thanks,
Krishna M