Hi, > "Bret Kuhns" <[EMAIL PROTECTED]> wrote:
> Now all of the binary data will be stored in a blob in your table > (don't let the skeptics scare you away from this approach This[0] is an interesting read (check the comments too!) on this subject. > And it'll probably help to keep track of the image's MIME > content-type with another table column if you're going to have a PHP > script that outputs the blob field data. Don't forget that the uploaded MIME type can be faked[1]. You may want to look into using the command 'magic' or getimagesize()[2] to get a real MIME type. Regards, --Lamby [0] http://mysqldump.azundris.com/archives/36-Serving-Images-From-A-Database.html [1] http://uk2.php.net/features.file-upload [2] http://uk.php.net/manual/en/function.getimagesize.php -- Chris Lamb, Cambridgeshire, UK WWW: http://chris-lamb.co.uk Q. Why is top posting bad? GPG: 0x634F9A20 A. Because it breaks the logical sequence of discussion
signature.asc
Description: PGP signature