note 21745 added to function.ibase-blob-open

From: Date: Sat, 25 May 2002 04:18:20 +0000
Subject: note 21745 added to function.ibase-blob-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-31016@lists.php.net to get a copy of this message
I'd tried to output the info & data of the blob field.: echo "*******************************************************<br>"; $sql = "SELECT id,name,pic FROM employee"; $result = ibase_query( $dbh, $sql ); if (list($id,$name,$pic) = ibase_fetch_row( $result )) { print "$id $name"; $blob_data = ibase_blob_info("pic"); $blob_hndl = ibase_blob_open("pic"); print ibase_blob_get( $blob_hndl, $blob_data[0] ); } else echo "Load Failed<br>"; echo "*******************************************************<br>"; or ~~~~~~~~~~~~~~~~~~~~~~ while (list($id,$name,$pic) = ibase_fetch_row( $result )) { print "$id $name"; $blob_data = ibase_blob_info($pic); $blob_hndl = ibase_blob_open($pic); print ibase_blob_get( $blob_hndl, $blob_data[0] ); } ~~~~~~~~~~~~~~~~~~~~~~~~~ or ~~~~~~~~~~~~~~~~~~~~~~~~ every time i used ibase_fetch_object($result) to fetch records, nothing return!!??? ~~~~~~~~~~~~~~~~~~~~~~~~ However the result was not what i want: ******************************************************* 1 kelvin Warning: InterBase module: invalid blob id Warning: InterBase module: invalid blob id Warning: InterBase module: 0 is not blob handle ******************************************************* did i do something wrong? -- http://www.php.net/manual/en/function.ibase-blob-open.php http://master.php.net/manage/user-notes.php?action=edit+21745 http://master.php.net/manage/user-notes.php?action=delete+21745 http://master.php.net/manage/user-notes.php?action=reject+21745

« previous php.notes (#31016) next »