Da li ti moze pomoci ovaj dio u kojem se radi o prikazivanju PDF datoteke:
Code:
$query = 'SELECT BLOBDATA FROM BTAB WHERE BLOBID = '.MYBLOBID;
$stmt = OCIParse ($conn, $query);
OCIExecute($stmt, OCI_DEFAULT);
OCIFetchInto($stmt, $arr, OCI_ASSOC+OCI_RETURN_LOBS);
$result = $arr['BLOBDATA'];
// If any text (or whitespace!) is printed before this header is sent,
// the text won't be displayed and the PDF won't be loaded correctly.
// Comment out this line to see the text and debug such a problem.
header("Content-Type: application/pdf");
// http://www.php.net/header has some interesting comments on
// sending a "Content-Disposition" header
// It will force IE to give a "save" window instead of opening it.
//header("Content-Disposition: attachment; filename=suggestedfilename.pdf");
//header("Content-Length: " . strlen($result));
echo $result;
OCIFreeStatement($stmt);
OCILogoff($conn);
Blog - baze podataka
---------------------
Oracle OCP DBA (9i & 10g)
Oracle Database: SQL Certified Expert
Oracle OCP Developer
Certified MySQL DBA