We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Corrupted FileAttachments

Accepted answer
15
Views
1
Comments
edited Sep 2, 2019 7:16PM in Customer Portal 1 comment

Summary

Can't download FileAttachments on Custom Object

Content

I have created a Custom Object with a FileAttachments field associated with it. I am filling this property from the Portal by encoding the file with the btoa() function and sending it through the Rest API. Everything is working fine in the Customer Portal and I can get it back with the atob() function.

The problem is with the Agent Desktop and the AgentWeb (BUI). They both display the attachments correctly in the report but when I try to download them, through their respective environments, the files are corrupted.

Does anybody have any idea why this is happening? Am I missing something when I post them through the Rest API?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!