SyntaxFix
Write A Post
Hire A Developer
Questions
i don't know about converting into a byte array, but it's easy to convert it into a string:
import base64 with open("t.png", "rb") as imageFile: str = base64.b64encode(imageFile.read()) print str
Source