4,165 questions
4,378 answers
5,729 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