Convert external image to base64

I have a variable with a url to a jpeg file on a remote server.

Now I want to load the image and convert to base64. Is this possible?

I already have a img tag to show the image in my template view.

you could use FileReader readAsDataUrl

hmm good to know :smile:

I’ll try it …

At this moment I’ve encoded the image on the server as base64 and return to my app.