This exchange has been fun to watch!
Hi Aaron,
Clicking a link sends a request to the web server. The response that comes
back has a small set of HTTP headers associated with it.
In these headers, you can specify the filename that you want the browser to
use when opening the file.
Content-Type = application/download
Content-Disposition = attachment; filename=my_vacation_pic.jpg
This will allow the user to save the file by the name you provide.
You simply have to code the headers.
I'm not clear from your messages if you are storing the files in the
database or just their names. If you are storing just their names, then you
will want your ASPX page to set the HTTP headers first, then read the file
into memory, encode to Base64, and stream it into the Response object.
The browser will do the rest.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.