Right now I'm limited by the 3mb heap restriction. Since an httprequest cannot be chunked when requesting a file be downloaded is there another way?
Tell me more
×
Salesforce Stack Exchange is a question and answer site for
Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.
|
The limit you are running into is not the heapsize limit but the "Maximum size of callout request or response" which is always 3mb. There is no way to get around this in apex but you could download the file with client-side javascript on a visualforce page and then use the AJAX Connector to insert the file to avoid this limitation. |
|||||||
|