Looking to the community for some help on this one..
I've been using postman to deliver a multipart message with the binary data to upload a document to a document folder through the REST API.
The document is loading fine but is always corrupted. I'm unable able to create/convert to the right binary for the document to load with content successfully.
Any advice on how to convert the content of the document to the appropriate binary string so that the document loads successfully without getting corrupted? Ideally through postman for a POC.
Note: I'm following the instructions according to this wiki: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm
base64Decode
method ofEncodingUtil
before saving it to the file body?