471,893 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,893 software developers and data experts.

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 2421
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
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.