#18964 [Com]: ibase_blob_import problem
| From: | keltic at inbox dot ru | Date: | Wed, 21 Aug 2002 15:43:39 +0000 |
| Subject: | #18964 [Com]: ibase_blob_import problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17456@lists.php.net to get a copy of this message | ||
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:
what kind of info do you need? please tell me particularly.
Previous Comments:
------------------------------------------------------------------------
[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)
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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