encode any image as base64 to store it in a database or textfile.
includes function to show base64 encoded imagecode.

copy the code of image handling / base64 image encode

click here to select all the code