Can't load Blob with oci8
Posted: Fri Nov 13, 2009 1:46 pm
Hi, I'm trying to load a blob from an oracle db. The purpose is for downloading a file from the db. I've searched on the web and it seems to be always the same procedure:
Any ideas?
Thank you in advance
Steve
Code: Select all
//$stmt is a valid descriptor for the executed query 'select blobcol from blobtable'
$result = oci_fetch_assoc($stmt);
$outVar = $result['blobcol']->load();
//At this point the variable $outVar turns to be null (tested with var_dump and by sending the headers and the var and downloading the file)
Thank you in advance
Steve