Is there a way to send an image file in a Rest API Call?

I need to send an image file in a Rest API Call. The service is expecting the Content type to be"application/octet-stream", for which I have selected the content-type as "Document(auto-detect)" in Appian. But , it isnt working. 

 

  Any help would be much appreciated.

  Discussion posts and replies are publicly visible