Re: Re: how to display images stored in DB

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

 



Kevin Waterson wrote:

> This one time, at band camp, zerof <zerof@xxxxxxxxxxxx> wrote:
> 
>> It is not a good practice to store pictures in DataBases, use links,
>> instead of.
> 
> Rubbish, where are your benchmarks?

It has almost nothing to do with benchmarks.

Images are typically best supported in the form of files. They are more
easily manipulated by external tools. 

The web browser sees an image as a single HTTP request. Invoking the PHP
script engine, parsing the script, and executing a SQL query to retrieve
the image from the database is less efficient than letting the web server
just send the file.

Image files do not need to be constrained by the rigid requirements of a
relational database.

I could go on, but it should be clear enough that putting images in a
database is not a good idea.

-- 
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