MySQL Forums
Forum List  »  Newbie

Re: working with images in MYSQL
Posted by: Puiu Hrenciuc
Date: September 08, 2004 05:34PM

You could save them in a BLOB field ( first encode all the data using Base64Encode ) and when you want to display them just read the record, use Base64Decode to obtain the original data, send the corect MIME ( eg. header ("Content-type: image/jpg");) and echo the data to the browser ...

Options: ReplyQuote


Subject
Written By
Posted
September 08, 2004 04:33PM
Re: working with images in MYSQL
September 08, 2004 05:34PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.