We help IT Professionals succeed at work.
Get Started

How to view a pdf file embeded in a sql database as varbinary(max) via acrobat from a vb.net application

1,118 Views
Last Modified: 2012-05-07
Hello.
We have an SQL 2005 database that has PDF files stored in a VARBINARY(MAX) field.  We have no problem loading the pdf files into the database or extracting them back as normal pdf files.

We now would like to extract the pdf data from the database and display it in the local machines Acrobat Reader WITHOUT having to first save it to a file. We need to accomplish this from a VB.Net application.

Basically: We want to be able to view the pdf data stored within the database in a vbform that contains an Acrobat Reader control. We can view a pdf stored on the local drive via the vbform with the Acrobat Reader control, but have had no success trying to view it directly from the database.

Any help will be appreciated.
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE