I'm trying to implement a rest callout to Salesforce using camel-salesforce component in spring boot and wanted to know if I have to make a GET call to Salesforce content api over https that downloads various types of files of sizes close to 50 MB which component option would I choose? I read the documentation here https://camel.apache.org/components/3.18.x/salesforce-component.html and got confused.
I tried the below in my camel config
salesforce:apexCall?apexMethod=GET&apexUrl=/services/data/v49.0/connect/files/545435435/content&rawPayload=true&sObjectClass=org.apache.camel.component.salesforce.api.dto.CreateSObjectResult"/>
CodePudding user response:
Try the raw operation.
It returns an InputStream
which ideally will contain the file you fetched.