G
Gerrit Horeis
Hi NG,
I've a Problem with users who want to download DB-stored pdf files
("document.pdf"). The download is processed by an aspx-page which
Response.BinaryWrites the file to the client. but on safari 2.0.0.4
(and MacOs 10.4.9) the file is renamed to Document.pdf.html. Safari
1.xx does it all right.
I've set the ContentType and appended the right headers.
Response.ContentType = SqlDr["ContentType"].ToString();
Response.AppendHeader("Content-Disposition", "attachment; filename=\""
+ FileName + "\"");
Response.AppendHeader("Content-Length", OrgSize);
Can anybody please help?
--
Gerrit Horeis
Software Developer
CI-Gate Development & Consulting GmbH
http://www.ci-gate.de
I've a Problem with users who want to download DB-stored pdf files
("document.pdf"). The download is processed by an aspx-page which
Response.BinaryWrites the file to the client. but on safari 2.0.0.4
(and MacOs 10.4.9) the file is renamed to Document.pdf.html. Safari
1.xx does it all right.
I've set the ContentType and appended the right headers.
Response.ContentType = SqlDr["ContentType"].ToString();
Response.AppendHeader("Content-Disposition", "attachment; filename=\""
+ FileName + "\"");
Response.AppendHeader("Content-Length", OrgSize);
Can anybody please help?
--
Gerrit Horeis
Software Developer
CI-Gate Development & Consulting GmbH
http://www.ci-gate.de