Converting the attachment into base64 encoded string.

Abhishek_Thakur
Mega Sage

"Have you ever thought GlideSysAttachment getContentBase64() function to pass attachments through an integration it is returning an empty string even though the attachment is present 🤔."

Cause:
This may happen due to the size of attachment.
As per the documentation we can only convert the files up to 5 MB.

Resolution:
However, if you need to covert the attachment more than 5 MB. You can use the below script include to overcome with this challenge and you can easily convert the attachments into base64 encoded string.

Attachment.png

 

Stay tuned for more facts like this.

0 REPLIES 0