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
sravanthi bhavanamsravanthi bhavanam 

Download ContentVersion through Rest API results in timeout/partial file

I've been trying to download files (Documents, Attachments, ContentVersions, etc.) through Rest API.
The URL is:
https://<baseuri>/sObjects/<objname>/<id>/<bodyfield>


One of the issues encountered was that the ContentVersion files that are large in size (1.5 - 2 GB) are not downloaded completely. Tried testing it through CURL where the file download automatically closes after a certain time (10-15 minutes). This is strange since other files are downloaded and probably aren't as big as the contentversions for the issue to occur. Has anyone encountered such an issue while downloading large files and is there any way to download these files?
Web Admin 19Web Admin 19
Did you ever solve this problem?  I'm trying to do the same thing via APEX REST and I'm getting errors.  
sravanthi bhavanamsravanthi bhavanam
No, all we got from salesforce is request for increase API timeout when whenever we see the issue