4,164 questions
4,377 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