Solved

How do I create a PDF from a BLOB?

Posted on 2014-01-10
2
264 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expando 4 47
SQL syntax in VB.net 5 30
Help with AsEnumerable(), LINQ 4 22
Get the selected ValueMember of Combobox 5 21
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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 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

14 Experts available now in Live!

Get 1:1 Help Now