note 7614 added to OCIBindByName
| From: | carlos at radiumsystems dot com dot br | Date: | Tue, 08 Aug 2000 20:29:51 +0000 |
| Subject: | note 7614 added to OCIBindByName | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-715@lists.php.net to get a copy of this message | ||
To save a image:
$img_contents = fread( $fd, filesize($file_name) );
$raw_string = bin2hex($img_contents);
ociparse( $conn, "INSERT INTO table (img) VALUES ('$raw_string')" );
...
This works fine for blobs. I think it should be the same.
http://www.php.net/manual/function.ocibindbyname.php