Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai friends,
How to download a file from application foler. i have Wallpaper folder with images. i need to download from the folder when user clicks the link.

Thanks in advance.
Posted
Updated 15-Feb-10 20:06pm
v2

you can get the query string using Request.QueryString()
but i cant figure out the location from where you want to download the image from. Is your image/pdf files in your database? or your query string contains the path to it. Please be specific.
 
Share this answer
 
Images are stored in sql server as BLOB data type. So query the table, get the value from that column and convert it to appropriate type (Image stream or other input stream) and bingo, you get the file.

Read more about Blob.
 
Share this answer
 
v2

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