+ Start a Discussion
cooldamselcooldamsel 

Unable to send PDF attachment to external service

Hi All,

I have created a service in .NET which integrates Salesforce with SQL. The purpose of the service is to get Salesforce data  and insert into SQL. The salesforce data includes attachment in Case object. In Salesforce, I have written an apex logic to get attachment from  Salesforce and send it to the Service. I have generated WSDL of the external service and parsed it and generated an apex class of the external service. My logic works fine when attaching an image file or any other file and sending it to external service. But when attaching a PDF and sending to service, I am getting an error in Salesforce. Can anyone please help me out.

Thanks in advance.