Hello All,

How to display pdf file when user uploaded on mobile with binary data?

If we use upload widget then we are able to display uploaded picture in mobile. I want same functionality for pdf file how to achieve it?


Thanks 

Prajakta Roshankhede

Prajakta Roshankhede wrote:

Hello All,

How to display pdf file when user uploaded on mobile with binary data?

If we use upload widget then we are able to display uploaded picture in mobile. I want same functionality for pdf file how to achieve it?


Thanks 

Prajakta Roshankhede

Please use the below component it will resolve your issue.I used the same in my mobile app.Hope this helps.

https://www.outsystems.com/forge/component-overview/1606/file-viewer-plugin


Salman Ansari wrote:

Prajakta Roshankhede wrote:

Hello All,

How to display pdf file when user uploaded on mobile with binary data?

If we use upload widget then we are able to display uploaded picture in mobile. I want same functionality for pdf file how to achieve it?


Thanks 

Prajakta Roshankhede

Please use the below component it will resolve your issue.I used the same in my mobile app.Hope this helps.

https://www.outsystems.com/forge/component-overview/1606/file-viewer-plugin


Hello Salman,

I have used this application but this component is used to open document outside application. I want to display pdf file in mobile screen itself. 

Thanks

Prajakta


Prajakta Roshankhede wrote:

Salman Ansari wrote:

Prajakta Roshankhede wrote:

Hello All,

How to display pdf file when user uploaded on mobile with binary data?

If we use upload widget then we are able to display uploaded picture in mobile. I want same functionality for pdf file how to achieve it?


Thanks 

Prajakta Roshankhede

Please use the below component it will resolve your issue.I used the same in my mobile app.Hope this helps.

https://www.outsystems.com/forge/component-overview/1606/file-viewer-plugin


Hello Salman,

I have used this application but this component is used to open document outside application. I want to display pdf file in mobile screen itself. 

Thanks

Prajakta


ok.Did you try using iframe put src for the pdf path?


Hi Prajakta,

Please check the attached oml if that will work for you.Tested in Android.

Salman Ansari wrote:

Hi Prajakta,

Please check the attached oml if that will work for you.Tested in Android.


Thanks for your effort!! 

But I want to display pdf with binary data and not by url.

Any pointer on that would help

Prajakta Roshankhede wrote:

Salman Ansari wrote:

Hi Prajakta,

Please check the attached oml if that will work for you.Tested in Android.


Thanks for your effort!! 

But I want to display pdf with binary data and not by url.

Any pointer on that would help

You can expose a REST service, that will return the binary file.

On the input of the Src/Path/Url, you set the URL to the REST endpoint service.



Hi,

please, check this post: [File Viewer Plugin] How to open PDF File inside the app

Cheers,
Miguel

Hi Prajakta Roshankhede,


1. First Use "iframe" after that bind property like below image (SS-1).

2. Convert Binary Data to Base64 and provide it iframe src (SS-2).

3. Then you will be able to open pdf (SS-3).

4.find attached oml also.





Hope this will help you.

Regards

Rahul Sahu