#18964 [Opn->Fbk]: ibase_blob_import problem
| From: | sniper@php.net | Date: | Mon, 19 Aug 2002 20:32:58 +0000 |
| Subject: | #18964 [Opn->Fbk]: ibase_blob_import problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17236@lists.php.net to get a copy of this message | ||
ID: 18964
Updated by: sniper@php.net
Reported By: keltic@inbox.ru
-Status: Open
+Status: Feedback
Bug Type: InterBase related
Operating System: WIN 2000 Pro
PHP Version: 4.2.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-08-19 10:32:57] keltic@inbox.ru
//inserting to the database
$blob_id_str = ibase_blob_import($fp);
$q1 = "insert into table1 values(1, ?)";
$r1 = ibase_query($db, $q1, $blob_id_str);
------------------------------------------------------------------------
[2002-08-19 10:22:05] keltic@inbox.ru
<?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)
------------------------------------------------------------------------
[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