4,177 questions
4,390 answers
5,755 comments
Convert the images to binary hexadecimal and then pass them in the regular publish API. This page explains how to convert a file into binary hexadecimal format:
https://stackoverflow.com/questions/3964245/convert-file-to-hex-string-python