• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

How do I create a PDF from a BLOB?

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.
1 Solution
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.
BlakeMcKennaAuthor Commented:
Thank you sir...that helped!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now