Hi, I tried posting this a couple of days ago but it doesn't seem to have
been added. Anyway...
I am trying to force download of files extracted from a SQL Server
database.
The files are of any of the following types - .doc, .ppt, .pdf or .avi,
and all the MIME type and file name etc info is supplied from the db.
I am using the following code to force the download:
Response.ContentType = rs("sMIMEType")
Response.AddHeader "Content-Length", rs("sFileSize")
Response.AddHeader "Content-disposition","attachment; filename=" &
rs("sFileName")
Response.BinaryWrite(rs("binFile"))

This works fine in the latest version of IE6, but nothing earlier - can
anyone supply any ideas.

Many thanks

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to