Encode image into base64 format.In PHP base64encode() method is been used for base64 conversion. Before storing it in the database I append data: image/.imageFileType.base64, text with base64 value. andi151278 14-Nov-2005 09:58.
Using base64encode to produce clean filenames from usernames (e.g. for image upload) is a bad idea if Umlaute (,,) are allowed.