You are here: GD Strange error « PHP Programming Language « IT news, forums, messages
GD Strange error

Posted by pmz on 08/06/07 08:17

Dear Group,

I'm not sure what is going one with my software, but something really
strange.
I'm storing in BLOB in MySQL data of an image, which I display like:

header("Content-Type: image/png");
echo base64_decode($blobColumnData);

Firefox/IE says, that the image cannot be displayed because it
contains errors. I've tried setting header to image/jpeg, etc, with no
results.
At the end, I've just tried fwrite() the 'base64_decode($blobData)'
into a file and display it in Gimp - with no problems, with no
difference jpeg or png.

What's wrong? Where shall I look for problems?

Some system details:
PHP Details:
PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Jul 27 2007
01:29:42)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

GD Details:
gd-2.0.33_4,1
php5-gd-5.2.0
png-1.2.14
jpeg-6b_4

OS Details:
FreeBSD drum.phpdev 6.2-RELEASE FreeBSD 6.2-RELEASE

Thank you for help!

All the best,
Przemek M. Zawada

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация