IE (HTTPS): generating pdf from php file doesn't work

后端 未结 6 1533

Here is my issue. I am trying to call a page: foo.php?docID=bar and return a PDF to the screen which is stored as a BLOB in the DB.

Here is the portion of my code w

6条回答
  •  悲哀的现实
    2020-12-30 09:10

    I had this issue too, i used the following which seems to work fine

    header("Content-type: application/pdf");
    header("Content-Length: $length");
    header("Content-Disposition: inline; filename='$filename'");
    

提交回复
热议问题