Re: Inserting images to Database

From: Date: Fri, 01 Sep 2000 16:44:40 +0000
Subject: Re: Inserting images to Database
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-14834@lists.php.net to get a copy of this message
From a programming point-of-view, this model is much cleaner. You treat the data as any other data being inserted into the database. Then you don't worry about file names, file permissions, removing files upon a delete, overwriting, etc. From the database point-of-view, this may not be so nice since the table can grow to enourmous proportions, slow up queries, possibly corrupt data, etc. Now what would be nice is if the database took care of this for you. Maybe a column of type "file" that would actually insert the contents to a file and store the link internally. Will MySQL do that? if not, put it on the wish list :-) Soeren Staun-Pedersen wrote: > > On Fri, 1 Sep 2000, Goksel Misirli wrote: > > > I will make a e-business module. So I have to do this. > > But what do you gain by adding the image data to the database? Why not > store the images on the disk and refer to them via the database? > > Soeren Staun-Pedersen - staun@netwarriors.org > ------ > "The internet is full, beat it" > - Me. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.general (#14834) next »