Question
Write file with Base64 encoding
I'm trying to write a Base64 string to a png file as part of a CEP extension.
I can do this with:
var filename = "/path/to/file.png";
var data = /*base64 string*/;
window.cep.fs.writeFile(filename, data, window.cep.encoding.Base64);
but ideally I'd do it inside my JSX file. Is this possible or do I need to stick with the above in my .JS file?
Thanks
