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 Charlie King on 10/16/42 11:35

On 23 Dec 2005 11:55:47 -0800, in
<1135367747.909658.106790@g47g2000cwa.googlegroups.com>
(comp.lang.php) "Chung Leong" <chernyshevsky@hotmail.com> wrote:

> Use the VariableStream class given as an example here:
>
> http://fi.php.net/manual/en/function.stream-wrapper-register.php

Thanks, to you and Sean, for your ideas - I'll try them both out: the
more strings to my bow the better! :)

As it happens, shortly after posting, I found the tool that I needed
for the script I had already built: imagecreatefromstring();

Following on from the example in my first post, now I can do

$im = imagecreatefromstring($photo);

which lets me

$photoWidth = imagesx($im);
$photoHeight = imagesy($im);
list($width, $height, $type, $attr) =getimagesize($im);
etc.,

Although Sean's point about using the filesystem to store images, and
the database to reference them, seems like a good one given the 2048k
limit I have on LONGBOOLs in MySQL...

Cheers all

--
Charlie

 

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

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