4,156 questions
4,369 answers
5,718 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