Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
420 views
in Technique[技术] by (71.8m points)

python - Convert pillow Image object to bytes object in order to store it in a blob column

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')
question from:https://stackoverflow.com/questions/65901514/convert-pillow-image-object-to-bytes-object-in-order-to-store-it-in-a-blob-colum

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...