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:
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:
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.
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.
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 salman i tried your application but it work only in emulator but not in android device .!! it self could you plz help me in that case?
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
Rahul Sahu wrote:
Hi Rahul Sahu,
I have tried the .oml file you've attached. And this is what i've got
Any idea why? I hope you could help me on this. thanks
Regards,
Nhorwin
It will open the file Size below 3mb only.
thank you for your quick response and sorry for replying late. I want this functionality in offline mode
as well as main idea is once user upload pdf he should be able to see it on screen before storing into database