Spire.PDFViewer is a powerful PDF Viewer component for .NET. It allows developers to load PDF document from stream, file and byte array.

Mon Jun 03, 2024 11:49 pm

we are using Spire.PdfViewer.Asp now and it is working great for PDF's stored on our server. We are looking to start serializing those PDF's and storing them in our SQL database so we don't have all the PDF's on our server. Where can I find code example on how to use Spire.PdfViewer.Asp and load a Serialized PDF from a SQL database?

colinmhart
 
Posts: 15
Joined: Thu Aug 18, 2022 7:19 pm

Tue Jun 04, 2024 5:56 am

Hello,

Thank you for your inquiry.
Kindly note that Spire.PdfViewer does not support directly loading serialized PDF files from the database. As a solution you could probably deserialize the pdf file into a stream first and then load it using the "PdfDocument.LoadFromStream(Stream stream)" method. If you have any other questions, please feel free to write to us.

Sincerely
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.PDFViewer