I'm not sure I understand why that's useful - when do you need to use a Base64 string instead of, say, the URL of an image?
Using CallJS, I can access base64 representation of image located inside the index.html DOM. The way to add that image, by returning from CallJS, is to use that base64 string inside C2's canvas. I'm doing that because I have some JS code outside C2 that can modify images, and that code is to complex for me to import inside C2.
A better solution would be a plugin that can load that image directly, which does not require using base64 at all and is probably the same amount of work!
Develop games in your browser. Powerful, performant & highly capable.
OK. I'm going to try that direction. Thanks.