from PIL import Image
image = Image.open("image.jpg")
file_path = io.BytesIO();
image.save(file_path,'JPEG');
image2 = Image.open(file_path.getvalue());
I get this error TypeError: embedded NUL character
on the last statement Image.open
on running the program
What is the correct way to open a file from streams?
Aucun commentaire:
Enregistrer un commentaire