function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Send Blob data to external server



I have a requirement to send a doc (pdf / excel / doc...) from salesforce to ftp server, so i can use HTTP restful services classes but here's a limit 6 MB max of data can be send with HTTP request. In my case doc size can be more than that,

that's why i m thinking to send data using SOAP api but not sure that can pass BLOB data as parameter in callout (pass to external webservice ).


Did anyone face this problem before ?


Any help would be appreciated.




You cannot use callouts to send blob to external web service.

One alternative is to write a client application either in java/.net and host it somewhere. This client app will pull the attachments from your Salesforce org and can pass it to external web service.


Is your Blob an Attachment?


You could always String it, Encode it, and send it our via a RESTful callout.