Question

How do i preview a stream(byte or base64) in microsoft word document

I have requirement where i need to preview a doc in word doc. The user should only be able to view the document and not download it. I get the content of the document as (base 64). So is there anyway that i can show the content of the document in word doc?

Thanks In Advance,

Correct Answer
September 5, 2019 - 3:34am

Hi Vijay,

Following article might help you find a solution. According to my understanding, you can use "sendFile" method to achieve this.

https://community1.pega.com/community/product-support/question/how-show-binary-content-file-pega

Please take a look at the last comment in the following article to get an understanding of "sendFile" method.

https://community1.pega.com/community/pega-support/question/view-attachment-new-browser-tab

Regards,

Yasantha

Comments

Keep up to date on this post and subscribe to comments

September 5, 2019 - 3:34am

Hi Vijay,

Following article might help you find a solution. According to my understanding, you can use "sendFile" method to achieve this.

https://community1.pega.com/community/product-support/question/how-show-binary-content-file-pega

Please take a look at the last comment in the following article to get an understanding of "sendFile" method.

https://community1.pega.com/community/pega-support/question/view-attachment-new-browser-tab

Regards,

Yasantha

September 19, 2019 - 9:36am
Response to Yasantha

Thanks Yesantha..!