header('Content-type: image/gif');
$conn=oci_connect("SCOTT","tiger","XSCJ");
$sql="SELECT image FROM table WHERE number='333'";
$smt=oci_parse($conn,$sql);
oci_execute($smt);
$row=oci_fetch_array($smt);
$image=$row['image'];
echo $image;
上面的代码显示不了Oracle里保存的图片,提示错误:Catchable fatal error</b>: Object of class OCI-Lob could not be converted to string in请问高手这是什么问题啊,怎么解决?
$smt=oci_parse($conn,$sql);
oci_execute($smt);
有问题
如果不需要将语句自动提交,则需要把 mode 设为 OCI_DEFAULT