Re: upload an image and store it in mysql
| From: | raditha dissanayake | Date: | Sat, 17 Jul 2004 06:19:35 +0000 |
| Subject: | Re: upload an image and store it in mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190815@lists.php.net to get a copy of this message | ||
i sidhu wrote:
* iNder Sidhu wrotes:- I use following query to upload the image in database DATABASE_query_die("INSERT INTO images (-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.name,status,image,size,type) VALUES (name.gif', NULL, 0x52306c474f446c685a414179414f594141502f2f2f2f2f3238502f31372f54313976503, '1.624 kb', 'image/gif')"); 0x52306c474f446c685a414179414f594141502f2f2f2f2f3238502f31372f54313976503 - This is base64 code for ur image. Hate to say it but this is another step in the wrong direction. Base64 encoding makes the data about 30% bigger not to mention the associated overheadds of encoding and decoding.