View Single Post

  #4 (permalink)  
Old 01-23-2006
Gnutt Halvordsson
 
Posts: n/a
Default Re: Getting image data as a variable

Sure I can do this, but I want to resize images before saving them into
the database, therefore, working with the $_FILE does not work.

Any other ideas.

Norman Peelman skrev:
> "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
>
>

Reply With Quote