Show pdf in browser from database
Hi friends,
I need to show pdf file in a pdfviewer in browser itself using AngularJs,
i need to get response from webapi and my file is stored in database in bytes. I have been searching on the net but not finding any relevant solution to this.

Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 21, 2019, 6:53 AM EDT
I mean it's a basic FileDownload nothing to it.
Abhishek Agrawal200 reputationPosted Mar 21, 2019, 3:17 PM EDT
Rahul PrasadRank #2,557 · 546 reputationPosted Mar 21, 2019, 5:05 PM EDT
Here is the tutorial for your reference:
https://www.e-iceblue.com/Tutorials/Spire.PDFViewer/Spire.PDFViewer-Program-Guide/How-to-use-Spire.PDFViewer-for-ASP.NET.html
To load a PDF file from stream, use LoadFromStream method.
Muthu KumarRank #935 · 2.2K reputationPosted Mar 24, 2019, 8:00 PM EDT
Here is an working example for you.
https://www.pdftron.com/blog/angular/build-a-pdf-viewer-in-angularjs-and-pdf-js/
https://www.beyondjava.net/ngx-extended-pdf-viewer
Thanks,
Muthukumar. M
Hussam BarouqaRank #6,374 · 268 reputationPosted Mar 28, 2019, 7:32 AM EDT