Greeting from the PHP newbie!
I am trying to open a pdf file stored in oracle blob column. The following code always get the result:
Object id #1
Could someone tell me what that means and why I can't open the pdf file?
TIA
<?php
{
header("Content-type: application/pdf");
if ($conn=OCILogon("user", "password", "orcl")){
$query = "select text from pdffiles where id = 1";
$s = OCIParse($conn, $query);
OCIExecute($s);
OCIFetchInto($s,&$data,OCI_ASSOC);
echo($data["TEXT"]);
oci_free_statement($s);
oci_close($conn);
OCILogoff($conn);
}
}
?>
text is the column that I stored the pdf file.
pdffiles is the oracle table.
I am trying to open a pdf file stored in oracle blob column. The following code always get the result:
Object id #1
Could someone tell me what that means and why I can't open the pdf file?
TIA
<?php
{
header("Content-type: application/pdf");
if ($conn=OCILogon("user", "password", "orcl")){
$query = "select text from pdffiles where id = 1";
$s = OCIParse($conn, $query);
OCIExecute($s);
OCIFetchInto($s,&$data,OCI_ASSOC);
echo($data["TEXT"]);
oci_free_statement($s);
oci_close($conn);
OCILogoff($conn);
}
}
?>
text is the column that I stored the pdf file.
pdffiles is the oracle table.