You are here: Re: Manipulating image data loaded from SQL database. « PHP Programming Language « IT news, forums, messages
Re: Manipulating image data loaded from SQL database.

Posted by Sean on 12/23/05 17:37

Not sure if this will work.

Put

//Do the get blob stuff
header ("Content-type: image/jpg");
echo $photo;

In a separate page called something like image.php. You should pass id
values to the page to display different images, so lets say the image
is id value 1, e.g. image.php?id=1.

Then try:

list($width, $height, $type, $attr) = getimagesize('image.php?id=1') ;

A better way to do it is not store the images in the database at all,
but store references to the images, and keep the image files on the
file system. By the simple fact you are storing images in the database
you are creating for yourself lots of unnecessary problems.

 

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

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