Post File From Salesforce Apex to External HTTP Webservices
This article will show you how to send files from Salesforce to an external webservice using the Apex HttpRequest Class. You’ll learn how make a ‘multipart/form-data’ HTTP request which includes your file as an attachment.