I upload & save PDF in SQL. Then people can open that PDF in web browser (IE). Today I've updated Acrobat Reader and I cannot open same PDF in web browser. I can save it to desktop then open it. There is no [Open] button in dialog box and it says file might be corrupted
Name: admin.pdf
Type: Adobe Acrobat Document, 37,8 KB
From: domain.com
*
Dynamically generated PDF' link is like below: http://domain.com/admin.asp?cmd=Download_PDF&id=20112
I did every solutions on both Adobe & Microsoft websites. I cannot open PDF files directly in IE8.
My ex-ASP code was:
Response.ContentType = rsFile("filetype")
Response.BinaryWrite rsFile("filedata")
Then I just changed it to make PDF as downloadable file, now I can -at least- download & open it in external Acrobat Reader (dialog box shows [Open] [Download] [Cancel] buttons):
Response.Buffer = TRUE
'Response.ContentType = "application/pdf"
Response.ContentType = rsFile("filetype")
Response.AddHeader "Content-Disposition", "attachment; filename=" & filename & ".pdf"
Response.BinaryWrite rsFile("filedata")