Re: resize image and store it to DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux