Solved

How do I create a PDF from a BLOB?

Posted on 2014-01-10
2
265 Views
Last Modified: 2014-01-13
I have a PDF File stored in a SQL Server DB as a Blob. What I'm not sure how to do is retrieve that Blob and open it as a PDF file or Word Docx.
0
Comment
Question by:BlakeMcKenna
2 Comments
 
LVL 12

Accepted Solution

by:
ktaczala earned 500 total points
ID: 39772910
If the original file was a PDF, then the variable that holds filestream that reads the blob just need to be saved with the pdf extension no conversion is necessary.  Saving data in a blob saves it byte by byte, it doesn't care what the file type is.  However you'll need to know the file type to recreate it as a file again.
0
 

Author Comment

by:BlakeMcKenna
ID: 39776689
Thank you sir...that helped!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question