You need to sign in to do that
Don't have an account?

Files are not opening except text in external server-Rest API
Hello Everyone,
I am working on one of the requirment where I am uploading files into salesforce and sending it to external server . While I cross verify in external server , I am able to open only text fomrat other than .txt none other format is opening and (point-2) another thing is if file size is more than 5 MB it is faling to send to external server . Need help if someone has ever faced similer challage.
Thanks.
I am working on one of the requirment where I am uploading files into salesforce and sending it to external server . While I cross verify in external server , I am able to open only text fomrat other than .txt none other format is opening and (point-2) another thing is if file size is more than 5 MB it is faling to send to external server . Need help if someone has ever faced similer challage.
Thanks.
Please share code snippets to get a better understanding of the issue.
thanks,
Aman
I am using ContentVersion to store files and here is my code snippets. Thanks
Here is the output that I am getting into external server, File is opening but in corrupt format.