Error in retrieving a BLOB from DB.
| From: | Naif Al-Otaibi | Date: | Thu, 28 Nov 2002 03:05:17 +0000 |
| Subject: | Error in retrieving a BLOB from DB. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126389@lists.php.net to get a copy of this message | ||
Hi all,
I use the following:
1) Win XP.
2) Oracle personal eddition 8.1.6.0.0.
3) IIS.
4) php-4.2.3-Win32 runs in cgi mode.
When I retrieve a blob from my DB, I got the following error:
Fatal error: Call to undefined function: load() in
c:\inetpub\wwwroot\php1\ora52.php on line 6
-------------------------------------------
This is my code:
<?php
$conn = OCILogon("system","manager","naif.localhost");
$stmt = OCIParse($conn,"select binary_junk from images where img_id=7");
OCIExecute($stmt);
OCIFetchInto($stmt, $lob);
$content=load($lob);
OCIFreeStatement($stmt);
OCILogoff($conn);
header("Content-type: image/gif\n\n");
echo $content;
?>