ID: 18964
Comment by: keltic@inbox.ru
Reported By: keltic@inbox.ru
Status: Feedback
Bug Type: InterBase related
Operating System: WIN 2000 Pro
PHP Version: 4.2.2
New Comment:
CVS snapshot works worse then php 4.2.2
Database error messages: Unable to display blob. The format is not
graphical. (for all types - BMP, gif, jpg, tif)
Detail message:
Stream read error(for all types)
Previous Comments:
------------------------------------------------------------------------
[2002-08-21 20:27:43] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-08-21 11:43:39] keltic@inbox.ru
what kind of info do you need? please tell me particularly.
------------------------------------------------------------------------
[2002-08-19 16:32:58] sniper@php.net
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
------------------------------------------------------------------------
[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)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/18964
--
Edit this bug report at http://bugs.php.net/?id=18964&edit=1