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
rohits83rohits83 

Single file of size 250MB to be pushed in Content Folder.

I need to push a single file of size 250MB to Content Folder using the Java API, but while trying to do this I got a error message mentioned below:

 

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>Maximum size of request reached. Maximum size of request is 52428800 bytes.</faultstring></soapenv:Fault></soapenv:Body></soapenv:Envelope>

 

Can someone please help how can I overcome this limitation.  I need this to work as the business requirement.

 

Thanks

Rohit

rohits83rohits83

Is there any way we can compress the SOAP request message to be sent to salesforce?

SuperfellSuperfell
You can compress the request, but in this case it won't help you as the 50Mb limit is applied to the decompressed stream. There's currently no API that'll let you upload a file of that size.
rohits83rohits83

Yes, the compression of such a huge request is also not resolving the issue ..

 

Thanks for replying ... 

fgwarb_devfgwarb_dev
Interesting that this isn't possible for Content; it might be possible in the chatter feed though.  Maybe a SOAP/REST infrastructure limitation?  (I'm guessing at that)  FWIW, here's some documentation that calls out the via API limit: https://help.salesforce.com/apex/HTViewHelpDoc?id=collab_files_size_limits.htm&language=en (when that link dies it stated for "Salesforce CRM Content" "38 MB when uploaded via the API")