gm im using n/encode to decode base64 for a png ...
# suitescript
s
gm im using n/encode to decode base64 for a png data What is the correct output encoding for a png file ?
Copy code
function fromBase64(stringInput){
            return encode.convert({
                string: stringInput,
                inputEncoding: encode.Encoding.BASE_64,
                outputEncoding: encode.Encoding.UTF_8
            });
        }
FYI to create a file from base64 encrypted you don't need to use encoding module and file module, you can set the encoding as one of the options