Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2019 08:28 AM
can you try
StringUtil.base64DecodeAsBytes(binaryfile);
if the above doesn't helped try to use the below.
var eccGr = new GlideRecord('ecc_queue');
eccGr.initialize();
eccGr.setValue('agent', 'AttachmentCreator');
eccGr.setValue('topic', 'AttachmentCreator');
eccGr.setValue('name', fileName+':'+contentType);// modify
eccGr.setValue('source', tableName+':'+tableSysId);// modify
eccGr.setValue('payload', binaryfile);
var sys_id = eccGr.insert();
-satheesh