cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Display/Download PDF binary stream returned from ABAP backend

suwandi_cahyadi
Contributor
2,215

Hi,

If we have a Backend Server that will return the pdf binary stream in oData response (in backend we use FM SCMS_XSTRING_TO_BINARY), is it possible to display/download the pdf file in Fiori?

This file contains sensitive private data, so we want to avoid saving the pdf somewhere first then show the pdf file from Fiori.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor
0 Kudos

If you cannot use the UI5 standard PDF Viewer, next best thing would be to use UI5Lab library.

https://github.com/lemaiwo/UI5LabLibraryPDFViewer/blob/master/README.md

Answers (3)

Answers (3)

kammaje_cis
Active Contributor

This is a common scenario in Fiori apps. You can use the control PDF Viewer for this. Look into the sample code in the above link.

suwandi_cahyadi
Contributor
0 Kudos

Hi,

Thanks.

I think I cannot use this. My UI5 library is 1.44.15.

laurent_burtaire
Active Contributor

Hello,

saving of opened document before being displayed is managed by the Web Browser itself i guess.

Indeed, with IE, you can either open or save the attached document whereas with Chrome, it is mandatory to save it first.

Regards.

Laurent.

suwandi_cahyadi
Contributor
0 Kudos

Hello,

I mean how to send the binary pdf data over from backend to Fiori?

Thank you.

0 Kudos

Hello,

By any chance did you get the solution to download the binary stream from Fiori?

Thanks