I am reading a bytes file, convert that and then Open it. I need to convert this back to bytes in order to store it in the database in a blob column.
How is this possible to convert actual image to bytes?
img = Image.open(io.BytesIO(dfa.flal_file)).convert('RGB')
2.1m questions
2.1m answers
60 comments
57.0k users