Skip to content
Advertisement

Convert PIL Image to byte array?

I have an image in PIL Image format. I need to convert it to byte array.

JavaScript

Now I need the roiImg as a byte array.

Advertisement

Answer

Thanks everyone for your help.

Finally got it resolved!!

JavaScript

With this i don’t have to save the cropped image in my hard disc and I’m able to retrieve the byte array from a PIL cropped image.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement