Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $binary = $row['PDF_FILE_STORED'];
- file_put_contents('my.pdf', $binary);
- header('Content-type: application/pdf');
- header("Content-Transfer-Encoding: Binary");
- header("Content-Length: ".filesize($binary));
- header("Content-Disposition: attachment;filename=my.pdf");
- ob_clean();
- flush();
- echo $binary;
Add Comment
Please, Sign In to add comment