|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-08-19 08:50 UTC] keltic at inbox dot 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
<?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)