Re: [PHP] Re: jpgs into database

2005-07-18 Thread Tyler Kiley
I've always liked storing all data in the DB to keep things simple, so I stored images in the DB and then cache them on the filesystem when they're first requested. Granted, it's pretty inefficient with disk space, but if you have a good ORM db lib and caching lib, it's extremely convenient. -- P

Re: [PHP] Re: jpgs into database

2005-07-18 Thread glumtail
I heard that Microsoft.com stores every images in database. Maybe the cost is the most important thing. 2005/7/19, George B <[EMAIL PROTECTED]>: > > Matthew Weier O'Phinney wrote: > > * Jasper Bryant-Greene <[EMAIL PROTECTED]> : > > > >>George B wrote: > >> > >>>is it pos

[PHP] Re: jpgs into database

2005-07-18 Thread George B
Matthew Weier O'Phinney wrote: * Jasper Bryant-Greene <[EMAIL PROTECTED]> : George B wrote: is it possible to put in a jpg file into a database? I am trying to make like a catalong and have all the files (including pics) and everyone can see. is this possible? Sure -- if you're using a My

[PHP] Re: jpgs into database

2005-07-18 Thread Matthew Weier O'Phinney
* Jasper Bryant-Greene <[EMAIL PROTECTED]> : > George B wrote: > > is it possible to put in a jpg file into a database? I am trying to make > > like a catalong and have all the files (including pics) and everyone can > > see. > > is this possible? > > Sure -- if you're using a MySQL database, jus

[PHP] Re: jpgs into database

2005-07-17 Thread Jasper Bryant-Greene
George B wrote: is it possible to put in a jpg file into a database? I am trying to make like a catalong and have all the files (including pics) and everyone can see. is this possible? Sure -- if you're using a MySQL database, just use a BLOB field and put the data in as you would a string o