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
RajanJasujaRajanJasuja 

Need to send large file upto 10MB using callout

Hi, 

I have a requirement to select 10MB file in Salesforce and then send it to external system using REST API? Anyway to do this using Lightning or VF?

Thanks,
Rajan
k2018123k2018123
Hi,

your external system can use oauth2 to connect to salesforce. Using rest api, it can find the id of the record from where the files needs to be picked from. After that, instead of using server side rest api, you can use client side API call to send the files to external system.
Details given in the following link :
https://xomino.com/2016/09/05/adding-an-attachment-to-an-opportunity-using-salesforce-rest-apis/

In this way you can send large files more than 100 mb without hitting salesforce limits