Re: Question regarding php and mysql with binary data...
| From: | Mitrana Cristian | Date: | Wed, 25 Jul 2001 12:05:30 +0000 |
| Subject: | Re: Question regarding php and mysql with binary data... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10745@lists.php.net to get a copy of this message | ||
Koutsogiannopoulos Karolos wrote:
Hello Again everyone... My question is simple... I have images submited IN my mysql Database. What i want is when i display them and i right click on them and choose save picture as i can get the name of the picture from the DB and not have to insert it my self. Does anyone now how can i do that with a file that comes from a db??? thanks _______________________ PGP KEY ID: 0xA86600E9 _______________________ You have store in the DB also the original file name,I assume you store the image using a BLOB field, so when you store the image in that field it does not retain the name of the file. I made somth. like this once and used a php script as a "image" target to retreieve the image with it's original name and type (.gif, .jpg, .png etc). regards, mitu