#25510 [NEW]: How to get Blob in informix

From: Date: Fri, 12 Sep 2003 09:38:38 +0000
Subject: #25510 [NEW]: How to get Blob in informix
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47505@lists.php.net to get a copy of this message
From: tqnam at pmail dot vnn dot vn Operating system: window 2000 PHP version: 4.3.3 PHP Bug Type: Informix related Bug description: How to get Blob in informix Description: ------------ I insert a blob value into table, but when i get blob value it is erro, please help me get it. Reproduce code: --------------- // the code insert blob value $query="insert into blobimage(pit_id,pit_image) values(5,FILETOBLOB('".$pathfile."','server'))"; $stmt=ifx_query($query,$con); if(!$stmt){print("errors");} ifx_free_result($stmt); ifx_close($con); // The code I get blob value $query="select pit_image from blobimage where pit_id=5"; ifx_blobinfile_mode(1); $stmt=ifx_query($query,$con); if(!$stmt){print("errors");} $row=ifx_fetch_row($stmt); $content=ifx_get_blob($row["pit_image"]); ifx_free_result($stmt); ifx_close($con); -- Edit bug report at http://bugs.php.net/?id=25510&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25510&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25510&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25510&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25510&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25510&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25510&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25510&r=support Expected behavior: http://bugs.php.net/fix.php?id=25510&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25510&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25510&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25510&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25510&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25510&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25510&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25510&r=gnused

« previous php.bugs (#47505) next »