zip/unzip pictures doesn't work

A Nilsson anders at gamebox.net
Sat Nov 9 05:40:51 EST 2002


I've been messing around with the zipfile module and discovered 
something strange.
When I zip/unzip ordinary text files there's no problem but when i use 
pictures (JPG and GIF) they get corrupted. I believe it is during the 
unzip operation they get messed up.
I've zipped with python, unzipped with python -> doesn't work.
Zipped with Winzip, unzipped with python -> doesn't work.
Same as above but unzipped with Winzip -> OK.

Is there something special you have to consider when unzipping a picture?

/Ando N
mailto:anders at gamebox.net




More information about the Python-list mailing list