469,267 Members | 1,085 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,267 developers. It's quick & easy.

problem opening dynamic images from mysql with gd

hello everyone,

I use a script to save .jpg-images in a mysql database. Another small
script outputs the database-stored-image to the browser
(getdbfile?id=1). All works fine.

Now I want to resize these images from the database using the GD
libraries. But I always get an error while opening the
'dynamic'-database-image:

getimagesize(getdbfile.php?id=1): failed to open stream: No such file
or directory in C:\apache\htdocs\cur\files\thumb.php on line 33

(I'm running Apache 1.3.14 and PHP 4.3.2).

Does anybody know how to solve my problem? - Thanks.
Jul 17 '05 #1
1 2359
On 21 Dec 2003 05:42:22 -0800, jo******@pagehost.de (Johannes Götzinger) wrote:
I use a script to save .jpg-images in a mysql database. Another small
script outputs the database-stored-image to the browser
(getdbfile?id=1). All works fine.

Now I want to resize these images from the database using the GD
libraries. But I always get an error while opening the
'dynamic'-database-image:

getimagesize(getdbfile.php?id=1): failed to open stream: No such file
or directory in C:\apache\htdocs\cur\files\thumb.php on line 33


You seem to be trying to use a URL for getimagesize; not going to work, it
doesn't accept URLs, just filesystem files.

You're probably going to have to write the image to a temporary file.

See http://uk2.php.net/getimagesize , the user notes at the bottom for
getimagesize_remote().

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Terry A. Haimann | last post: by
3 posts views Thread by Aleksandar Cikota | last post: by
2 posts views Thread by larry777 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.