Use loadimage() with base64-encoded PNG.

edited December 2018 in Programming Questions

Hello everyone,

I am trying to load an image from a base64-encoded string with loadImage like this: loadimage("data:image/png;base64,iVBORw0KGgoA..."), but it is not working (I cut the base64 string short in this post for space). When I this, I get an error saying, "The file "data:image/png;base64,iVBOR..." is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable."

I know the encoded string is valid, and as far as I am aware, it is possible to do this. Does anyone know how I can solve this?

Thank you

Tagged:

Answers

Sign In or Register to comment.