If you need to process a file like images to some third party system using HTTP request in Apex , we need the Multipart/Form-data processing in the HTTP request. In this example I am using salesforce chatter Rest API to fetch the content of a file and then passing that file content to the HTTP request. This is just a sample code , you will have to enter the authorization tokens and endpoints. Please note that processing files /Attachments using this may cause heap size governor limit also it counts against your daily limit of outbound webservice (HTTP) calls. 1.Fetch File Content From Salesforce Blob bodyBlob = null; HTTPRequest req = new HTTPRequest(); req.setEndpoint('<YourInstance>/services/data/v43.0/connect/files/ fileId /content'); req.setMethod('GET'); req.setHeader('Authorization', 'Bearer <Set oAuth Token>'); Http http = new Http(); HTTPResponse res = http.send(req); bodyBlob = blob.valueO...