RE: binary

From: Date: Wed, 28 Nov 2001 20:19:27 +0000
Subject: RE: binary
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10636@lists.php.net to get a copy of this message
As a general rule, putting files in a database can be a tedious thing. They take up tons of space, slow down the db, etc. Best to use a filesystem to keep your files, database to keep your data. (in other words, just keep the files in a directory). If you're doing it because you want to protect the images from casual users linking via HTTP directly to the images, consider keeping the files in a non-accessible directory and then use PHP to stream them to the client if & when it's appropriate for the client to see the file. (I did something similar for some .zip files that were on a site) TIM -I did it! I found the program's last bug! bug bug bug > -----Original Message----- > From: Brian Feliciano [mailto:brian@websensegroup.com] > Sent: Wednesday, November 28, 2001 5:07 AM > To: php-windows@lists.php.net > Subject: binary > > > can MySql can hold a binary data? is it possible to upload an image "inside" > the database? > > i want to upload an image, but i don't want it to be a file, i want it to be > a data in my database. is there a way i can deconstruct the image and place > it in the database and then retrieve and reconstruct it again? > > i just don't if it's possible. thanks. > > >

« previous php.windows (#10636) next »