#18964 [Bgs]: ibase_blob_import problem

From: Date: Mon, 19 Aug 2002 14:22:05 +0000
Subject: #18964 [Bgs]: ibase_blob_import problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17193@lists.php.net to get a copy of this message
ID: 18964 User updated by: keltic@inbox.ru Reported By: keltic@inbox.ru Status: Bogus Bug Type: InterBase related Operating System: WIN 2000 Pro PHP Version: 4.2.2 New Comment: <?php $db = ibase_connect("localhost:c:\db.gdb", "user", "password"); $filename = "c:\\image.bmp"; $fp = fopen ($filename, "r"); $blob_id_str = ibase_blob_import($fp); ibase_blob_echo($blob_id_str); /*inserting to the database*/ ?> if BMP image all is OK, but if i want import any other format as gif, jpeg, etc (see previous) it's echo the string, not picture. And it's inserting wrong data to the database. Database error messages: Unable to display blob. The format is not graphical. (for all types - gif, jpg, tif, png) Detail message: 1)Bitmap image is not valid (except png); 2)Stream read error(for png) Previous Comments: ------------------------------------------------------------------------ [2002-08-19 09:20:21] sander@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-08-19 08:52:15] keltic@inbox.ru ibase_blob_import() import correctly BMP images only. It doesn't support other image formats as GIF, JPEG, TIFF etc, specified in InterBase manual. AVI and MOV videos not supported too, didn't test the sound and others BLOB objects. Best Regards, Eugene Kinyapin ------------------------------------------------------------------------ [2002-08-19 08:50:15] keltic@inbox.ru ibase_blob_import() import correctly BMP images only. It doesn't support other image formats as GIF, JPEG, TIFF etc, specified in InterBase manual. AVI and MOV videos not support too, didn't test the sound and others BLOB objects. Best Regards, Eugene Kinyapin ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18964&edit=1

« previous php.bugs (#17193) next »