Convert image (png, jpg, or other format) to base64 or byte

I would like to know if it is possible to convert the image that is taken in meta editor(MT4) with ChartScreenShot () to base64 or byte, or to another format. 

I have tried to upload that photo through the wininet.dll library, but it has given me an error, now what I am trying to do is send the string.

Base64Encrypt Class
Base64Encrypt Class
This a library for a quick and easy encryption and decryption using base64. The usage is very simple and can be done in a few lines of code. <<< The return value of a method is the required output. <<< Feel free to use this library at your convenience.If it is helpful, please reward me by rating this item on mql5 site. >>From a developer, for developers.<<