Re: resize image and store it to DB
| From: | Robert Cummings | Date: | Tue, 01 May 2007 15:36:46 +0000 |
| Subject: | Re: resize image and store it to DB | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254193@lists.php.net to get a copy of this message | ||
On Tue, 2007-05-01 at 11:08 -0400, tedd wrote:
> At 12:54 PM +0200 5/1/07, Alain Roger wrote:
> >
> >i do not want to create a tmp file on server and after load it.
> >I would like to do it stored image directly into DB on-fly.
>
> Why?
>
> My understanding is that when you upload a file, it has to go
> somewhere. It might as well go into a tmp folder/file that php
> handles (creates/deletes), right? Or is this something that can be
> handled totally within memory? And if so, what's the difference,
> speed, security, what?
If you're going to put it in a database, then there's no sense incurring
the filesystem overhead of a temporary file. It can indeed be done
completely in memory by using output buffering.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'