How do I Encode a image to Base64

Hello, I am trying to proccess a string based images. I wrote a code that gets image (base64 format) and process it to other resources. But I need to do it from retool. I tried some Js codes to encode base64 from file uploder but it failed :frowning:

How do I encode a image to base 64 in retool ?
(external API'S also accepted as a solution :D)


Hi @alicem, If you upload an image into a file component it is available as base64 inside of fileInput.value[]. Can you share what the current file type of these images is and how you're loading them into Retool?