Re: Reading a image resource
| From: | Jason Wong | Date: | Wed, 17 Mar 2004 16:07:28 +0000 |
| Subject: | Re: Reading a image resource | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180686@lists.php.net to get a copy of this message | ||
On Tuesday 16 March 2004 23:55, Ewout de Boer wrote:
> Is there a function to get the raw image data from a image resource ?
> (resource created by imagecreatefrom....)
>
> I want to read and manipulate an image from a file and store it in a
> database without the use of a temp. file
One thing you can try is to use the output buffer functions to grab the output
of imagejpeg(), imagepng() or whatever. I've never done it before so let us
know if it works (although there's no reason why it shouldn't).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Is truth not truth for all?
-- Natira, "For the World is Hollow and I have Touched
the Sky", stardate 5476.4.
*/