suitedev
12/20/2019, 5:15 PMsuitedev
12/20/2019, 6:04 PMvar ofxFile = file.load({ id: '1345' });
var ofxContents = ofxFile.getContents();
// If the type is 'Other Binary File', the 'isText' property will be false
if (!ofxFile.isText) {
ofxContents = encode.convert({
string: ofxContents,
inputEncoding: encode.Encoding.BASE_64,
outputEncoding: encode.Encoding.UTF_8
});
}