I have a requirement to post PDF files from Salesforce to an endpoint. On looking into how to achieve this using APEX I came across this article about 'multipart/form-data'.
For my requirement I've been informed that I should use a Content-Type of "application/octet-stream" instead. As the above blog provides a workaround for 'multipart/form-data', I wondered for sending the base64Encoded string VersionData of a ContentVersion as the body of a HTTP Post (using "application/octet-stream") works are there any known issues that could occur with this and should be considered? Should the same process provided in the blog on 'multipart/form-data' be used and just change the Content-Type or is it completely unnecessary as files sent through "application/octet-stream" have no known issues (governor limits) that I'm aware of.
Thanks in advance for any help on this. It's a sanity check on "application/octet-stream".