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
hramanihramani 

Web service doubt

Hi,

I'm doing a Web service integration between Salesforce and lotus notes where Opportunity data along with the standard attachment attached to it is sent to the lotus notes instance. I'm sending the data on click of the save button (calling the web service from a trigger @future callout)

I came across governor limit which says

Maximum size of callout request or response (HTTP request or Web services call) - 3 MB

But my users are attaching files of large memory (more than 3 MB) causing the total memory of the Opportunity data and attachment sent to exceed 3 MB which results in the error :

System.callout exception :“Exceeded max size limit of 3000000 with request size 3006464


I got a suggestion where the attachment body can be divided into multiple chunks and send the each 3MB in 10 calls which is the maximum data transfer capacity in a single execution.  Here we have the limit of 3x10 =30MB limit

Can someone help me with some sample code. or please let me know the feasiblity.
Jayesh W.Jayesh W.

I hope below link will help you.

http://blog.jeffdouglas.com/2010/08/16/managing-the-heap-in-salesforce-com/

Regards,
Jayesh Wairale