Downloading files stored in image column of database...

C

Charlie@CBFC

Hi:

My asp.net application has capability to upload documents (doc, ppt, txt
ect.) in binary format into an image field of a SQL Server database. I
would also like my application to be able to download selected documents
from database to users hard drive. I don't want to open doc in browser,
just download file. How do I do this?

Thanks,
Charlie
 
V

Victor Garcia Aprea [MVP]

Hi Charlie,

This is not related specifically to ASP.NET. You need to properly feed some
HTTP headers (ContentDisposition, etc). Do a quick search on
groups.google.com with "asp.net contentdisposition" and I'm sure you'll find
tons of examples.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top