Converting hex data to image

Peter Otten __peter__ at web.de
Tue Mar 12 05:23:22 EDT 2019


dimplemathew.17 at gmail.com wrote:

>> Save the image to a file (in binary mode!) and then try to open it with
>> an image viewer. The data may be corrupted.
> 
> When i tried doing that it says Invalid Image...

So it looks like the problem occurs somewhere before you are decoding the 
image with the PIL...





More information about the Python-list mailing list