Question

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

Comments

Keep up to date on this post and subscribe to comments

February 27, 2019 - 3:40am

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

September 17, 2019 - 6:45am

Hi Mohan,

i got the same requirements, Could you please provide what you have did for this. That would be a great help.

Thanks in Advance.