Category: REST API

Apex to transfer Image
Nov 13
2019

Salesforce apex to send image file to 3rd party using REST API

Salesforce apex to send image file to 3rd party using REST API //attObj is an Object of Attachment object for which values will be coming from Visualforce page. //Attachment attObj = new attachment(); public pagereference customsave(){ String fileName = attObj.name; Blob file_body = attObj.body; String targetURL = system.label.ImageUploadEndPointURL; //API End point URL String boundary = […]

0 Comments
Read Full