I've been struggling with a problem for quite a while so I figured I would take a set back and examine the bigger picture. Is it possible to use Salesforce APEX trigger to get the body from an attachment (image) that is being added/modified and send that through HTTP POST with a callout to an external server where it is then saved to that server.
I have been working to use a node js server to decode the body Blob data and write it to a file on the server where node is, but my images are either corrupt outright or completely black in color, despite being the same dimensions as the original.
To put it as simple as possible: Attachment is Modified -> APEX Trigger -> HTTP POST from Salesforce to External server -> File is written on server.