Downloading files stored in image column of database...

  • Thread starter Thread starter Charlie@CBFC
  • Start date Start date
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
 
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
 
Back
Top