Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 Display pdf / doc file on asp web page
Posted by Ankur Dagar on  12/14/2009 5:56:49 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend

I need to display pdf and doc file from database on asp web page???

What i Hav done is storing Pdf and Doc file using file uploader in database , where the column is in image format i:e it is in binary data ,

i want to retrieve that pdf file to be shown on asp page in any tool , BUT not in adobe reader.

i try to convert doc file into image format to show on image tool but i cant...

So plzzz help me out????

Any kind of help is appreciated...

Post Your Reply Post New Question

 Viewer's Reply
Why Not Adode Reader?
Answered By Moderator1 on 12/16/2009 11:49:49 PM

May I know the reason why you don't want to open the pdf in Adobe Reader?

Surely, I don't think so, that you can open a binary doc or pdf file in an Image control.. Binary data must be opened in the appropriate format for proper data display.
adobe reader may not be installed at client side..
Answered By Ankur Dagar on 12/18/2009 12:12:02 AM
Thanks ,

i agree with you but what if adobe reader is not inatalled there.

first the client hav to installed it then only he can see the file i dont want the user to take that burden,

plz help me out
Adobe Reader for Web Application
Answered By Moderator1 on 12/19/2009 9:42:15 PM

Now days all the systems running windows operating system got this adobe reader to reading the pdf files. Added to this advantage, Adobe Reader is a free version, and using pdf files in every day life is un-avoidable. You can see many websites will have a note, that you need to download pdf from the Adobe website, because of its usability.

And coming to your problem, it can be easily solved, only if you give the information only in pdf, because, converting a document into image, will avoid its readability. How you will maintain the font formats and other options, if you convert a document to Image? Its very difficult and no use at last. Instead of taking a u-turn after long work hours, better, I suggest to give it in pdf format itself..I'm sure all internet use knows the use of pdf is much better way to transport document, without any harm for them.

Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
Oracle Magazine
Simply JavaScript - Free 150 Page Preview!
Easing the Migration to Microsoft SQL Server 2005