View Single Post

  #3 (permalink)  
Old 01-18-2006
Norman Peelman
 
Posts: n/a
Default Re: Getting image data as a variable

"Gnutt Halvordsson" <gnutt@shell.linux.se> wrote in message
news:RCVyf.154118$dP1.512537@newsc.telia.net...
> The problem lies in that I want to use database explicity for putting up
> images on a blogsite (i don't want to use the filesystem what-so-ever)
> (mostly to save myself from having issues with duplicate filenames, and
> when I delete one, both goes.)
>
> Image is loaded via a web-form, and are to be resized. Currently I save
> the images on a folder which everyone has write and execution-access to.
>
> Images are resized via the imagecreatetruecolor() and
> imagecopyresampled(), and then written to the filesystem. After that
> read into variables, which in their turn is written into the database.
>
> Is there any way for me the skip the filesystem-bit?
>
> Help much appriciated.
> //Gnutt


Yes, you can work directly on the $_FILE array as once the image is
uploaded it is already on the filesystem in a temporary folder.

Norm


--
FREE Avatar hosting at www.easyavatar.com


Reply With Quote