i sidhu wrote:

* iNder Sidhu wrotes:-
I use following query to upload the image in database

DATABASE_query_die("INSERT INTO images (`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.


-- 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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to