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
Rasoul Haddadi 6Rasoul Haddadi 6 

Insert big Attachments using APEX

Hi all !
I need to implement a class where using httpRequest will get files from Amazon S3 and insert it into Salesforce as an attachment. Due to the limits of Salesforce with Synchronous limit is 6MB which may in some of my files exceed. I wanted to know how could I overcome this issue and import files bigger than 6Mb as content of an attachment. I wanted to try multipart but also in that scenario I need to save the content of the attachment to a String which also will exceed the limit. Any suggestion or help would be perfect !
Thanks in advance.