[pdfJS Viewer Reactive] How to pass binary pdf data inside for URL

Forge Component
(1)
Published on 15 Jan by Eduardo Jauch
1 vote
Published on 15 Jan by Eduardo Jauch

How to pass binary pdf data inside of PDF URL

Hi,

You will need to convert the binary data to a base64 text if you want to pass it as an URL parameter value.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/BinaryData_API

Regards,

Daniel

Dear,

I can't see the answer. Please see the screenshot


Daniël Kuhlmann wrote:

Hi,

You will need to convert the binary data to a base64 text if you want to pass it as an URL parameter value.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/BinaryData_API

Regards,

Daniel

Hi,

I have passed as URL Parameter as base64 string but it is not showing.

Do you have any example


Thank you


Daniël Kuhlmann wrote:

Hi,

You will need to convert the binary data to a base64 text if you want to pass it as an URL parameter value.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/BinaryData_API

Regards,

Daniel

 

 Hi,


I have converted the binary data to base 64 using binarytobase64 action, but still i am not able to display the pdf , getting error as 400 bad request. Could you please guide me how to display the pdf in pdfjsviewer reactive? I am not able to display in binary, text & base 64?

Mani Ponvel wrote:

Daniël Kuhlmann wrote:

Hi,

You will need to convert the binary data to a base64 text if you want to pass it as an URL parameter value.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/BinaryData_API

Regards,

Daniel

Hi,

I have passed as URL Parameter as base64 string but it is not showing.

Do you have any example


Thank you


@Mani Povel : Are you able to display the bas64 or binary data to pdf js viewer ?

  in my case it is showing 400 bad request when i am showing as base64.