I have a PHP script that generates a PNG captcha(set by Content-Type header).It can be embedded in an HTML page by just using img
. I want to convert that image to base64 format for displaying.How do I go about doing that ?
Using the normal method for encoding as given on Wikipedia's article(Click Here) doesn't work.