Simple images can be POSTed to JSON API endpoints by converting the binary data to a Base64 encoded string.
The functions required to do should be available in all popular programming languages.
An example in Ruby is provided below.
The folowing ruby class has two public functions. One to encode an image file as a base64 string; another to decode a base64 string into an image file.