title: Retrieve image stored in Oracle database as lob through PHP
body: <p>I have to show an image which is stored in <code>Oracle</code> database as <code>OCI-Lob</code> Object.</p>
  
  <p>I have used following code:</p>
  
  <pre><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-&gt;load(); 
  </code></pre>
  
  <p>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 <code>PHP</code>.</p>
  
  <p>Thanks in advance.</p>