Hi
I'm trying to set the content type of a page to application/pdf, to prompt
to download or save of a pdf file coming direct from a database.
The page is accessed via a link, but rather than prompting to view or save
the file, simply outputs the binary code in the browser.
Code is as follows (I have left out the recordset query)
Response.ContentType = "application/pdf"
Response.AddHeader "Content-Type", "application/pdf"
Response.AddHeader "Content-disposition","filename" &
Trim(rs("sFileName"))
Response.AddHeader "Content-Length", rs("sFileSize")
Response.BinaryWrite(rs("binFile"))
I've tried various other things, like spelling 'disposition' with a 'D',
entering a hard-coded file name etc.
Any advice would be appreciated.
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]