• Akash Jagtap 1
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi,
I am trying to download files which range from 200 MB to 2 GB
I am making a HTTP GET Callout to an endpoint in Salesforce Apex Class

In postman, when I make the HTTP GET callout, a file stream gets started and the file download starts and I receive the "206 Partial content" message, the file starts getting downloaded in bits
After 40-50 secs, a window is popped-up on my screen asking to save the file and the file is saved on the System

WHen I try the same via HTTP GET Callout in Salesforce Apex Class, I receive the below Error:
Exceeded max size limit of 6000000

I understand that since the file size is large, it is exceeding the governor limits
SO, I tried to make a future callout by using the @future(callout=true) annotation
The Apex class is making a future callout, but I cant see any file downloaded

Does anyone have any idea how to handle file streaming in Salesforce APex?