Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header("Expires: 0");
- header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- header("Cache-Control: no-store, no-cache, must-revalidate");
- header("Cache-Control: post-check=0, pre-check=0", false);
- header("Pragma: no-cache");
- header("Content-type: application/pdf");
- pg_exec($dbh, "BEGIN");
- $ofp = pg_lo_open($data[14], "r");
- if (!$ofp)
- {
- echo "cannot open BLOB<br>\n";
- }
- $img = pg_lo_read_all($ofp);
- print $img;
- pg_lo_close($ofp);
- pg_exec($dbh, "END");
- }
Add Comment
Please, Sign In to add comment