Ask a question to get started
Enter to sendā¢Shift+Enter new line
Encodes image bytes into a b64 encoded string.
image_bytes_to_b64_string( image_bytes: bytes, encoding: str = 'ascii', image_format: str = 'png' ) -> str
image_bytes
bytes
Bytes of the image.
encoding
str
'ascii'
Type of encoding in the string. 'ascii' by default.
image_format
'png'
Format of the image. 'png' by default.