Solved

How do I create a PDF from a BLOB?

Posted on 2014-01-10
2
263 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
Comment Utility
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
Comment Utility
Thank you sir...that helped!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now