Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I retrieve PDF files through a database?

In the database only name is given and PDF files are stored in PDF folder.
The PDF folder is made in my .net project and shows the result in grid view.

[Improved readability]
Posted
Updated 4-Apr-11 21:51pm
v3
Comments
Mahendra.p25 5-Apr-11 1:49am    
You want to retrieve pdf file name from the database or something else
Dalek Dave 5-Apr-11 3:52am    
Edited for Grammar, Spelling and Readability.

You can get the PDF file path from the database using simple ADO.Net code. Check this[^] link for help. You will have to make some changes in the connection string and the type for the command and connection objects based on the database you are using. Still, the basic idea remains the same. Once you have got the file path, get it from the folder and show to the user.
 
Share this answer
 
v3
Comments
Dalek Dave 5-Apr-11 3:52am    
Good Call.
This[^] link may help you out.

Just treat the pdf as an image or any other large file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900