D
darren
Dear Groups,
I have a hosted application which allows subscribers to purchase PDF
documents. Once purchased, these documents are accessible from a user
private library to be downloaded at will.
All is well with this process except for one Windows XP computer which
keeps returning PDFs with nothing in them resulting in an error similar
to "Acrobat cannot open this document, the file type is either
unsupported or damaged, etc".
The code which grabs the PDF onclick is this:
filename = "whatever.PDF";
Session["FilePath"]=Server.MapPath("../docPDF/");
Response.ClearContent();
Response.ClearHeaders ();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition","attachment; filename=" +
filename)
Response.WriteFile(Session["FilePath"].ToString() + filename)
Response.Flush();
Response.Close();
If anyone has any insight into this, it would be most appreciated.
Darren
I have a hosted application which allows subscribers to purchase PDF
documents. Once purchased, these documents are accessible from a user
private library to be downloaded at will.
All is well with this process except for one Windows XP computer which
keeps returning PDFs with nothing in them resulting in an error similar
to "Acrobat cannot open this document, the file type is either
unsupported or damaged, etc".
The code which grabs the PDF onclick is this:
filename = "whatever.PDF";
Session["FilePath"]=Server.MapPath("../docPDF/");
Response.ClearContent();
Response.ClearHeaders ();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition","attachment; filename=" +
filename)
Response.WriteFile(Session["FilePath"].ToString() + filename)
Response.Flush();
Response.Close();
If anyone has any insight into this, it would be most appreciated.
Darren