I have to show an image which is stored in Oracle
database as OCI-Lob
Object.
I have used following code:
if(oci_fetch_array($rssqlclass,OCI_ASSOC | OCI_RETURN_LOBS)) {
$a = oci_result($rssqlclass,"image");
}
header('Content-type: application/octet-stream;');
header('Content-disposition: attachment;filename='.$_GET['name']);
print $a->load();
I have found above code with some research on Google. But those seems to be not working. What should I do to extract image stored in Oracle Database through PHP
.
Thanks in advance.