How do I view PDF directly from database (without saving file on disk)?

Q: In my application, the PDF is stored in a database. Does PDFNet SDK
support loading PDF to viewer directly from database (without going
through a file on disk)?
------------------

A: Are you developing a client application (e.g. WinForm, WPF, etc) or
a browser based application?

If you are developing client based application you can load PDF
directly from a memory bugger (or a stream) as shown in PDFDocMemory
sample:

   PDFDocMemory: http://www.pdftron.com/pdfnet/samplecode.html#PDFDocMemory

and use the resulting PDFDoc to initialize PDFViewCtrl as shown in
PDFViewSimple:

  PDFViewSimple: http://www.pdftron.com/pdfnet/samplecode.html#PDFViewSimple

If you are developing a browser based application you can stream
resulting PDFDoc to Silverlight using SilverDox (http://
www.pdftron.com/silverdox) as shown in SilverDox streaming sample.