[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread jtjohnston
See these. Reduire.phps probably has what you want. http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/afficher.phps http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/charger.phps http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/lire_binaire.phps

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread George Whiffen
I'm confused. Is your problem serving up the images in your database to the web or writing them out to files on the server? If it's serving images, I would expect you to have: select myimage from db Header(Content-type: image/jpeg); echo $myrow[myimage]; exit(); etc. If it's writing from

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Hi George, George Whiffen wrote: I'm confused. Is your problem serving up the images in your database to the web or writing them out to files on the server? Sorry for the confusion.. It was in writing out the database images to files on the server. This is where my problem lies.. If

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Sorry if I wasn't very clear abou tthis.. I don't need to echo the contents to be viewed on the web.. I'm already doing that here: http://www.wtoaction.org/caravan2001/ It's a matter of saving it to a file on the disk (from the database) so I can manipulate it with djpeg, pnmscale, cjpeg

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Hello, Jtjohnston wrote: See these. Reduire.phps probably has what you want. http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/reduire.phps This is what I was looking for I think.. But it still gives me an error.. This one actually got inserted right into the database: br

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Sorry, couple post-Post changes.. The initial query should have been: $sql = SELECT Image,Width,Height FROM Images WHERE ID='$ID'; The an echo of the UPDATE sql now looks like this: UPDATE Images SET Thumbnail=' Warning: Supplied argument is not a valid Image resource in

[PHP] Re: JPG Images from database to filename.jpg

2001-11-15 Thread Johan Holst Nielsen
Header(Content-type: image/jpeg); echo $Images; I can't figure out how to create the header. There's lots of examples of how to do the above, but I have yet to stumble across an example which allows you to write the header into a file You could make a PHP script that generate the