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:[EMAIL PROTECTED]] > Sent: Wednesday, November 28, 2001 5:07 AM > To: [EMAIL PROTECTED] > 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. > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]