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

Need to send large file upto 10MB using callout


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?


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 :

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