I'd like to create a thumbnail from an image and then insert that thumbnail in SQLite as BLOB. (without saving thumbnail as file first)
My code;
from PIL import Image
size = 120,120
file = "a.jpg"
imgobj = Image.open(file)
imgobj.thumbnail(size)
But how to save it to SQLite as BLOB
Well, there are many ways, and this is one of them: