zip/unzip pictures doesn't work
A Nilsson
anders at gamebox.net
Sat Nov 9 06:01:21 EST 2002
You're right! Thanks!
My first (failed) attempts were made on a Win NT.
Now I'm back on my own trustworthy linux machine and, hey, it works!
Erik Max Francis wrote:
> A Nilsson wrote:
>
>
>>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.
>
>
> Sniff, sniff. I smell a text/binary distinction (and I see you're on
> Windows). Make sure you open the relevant files in binary mode by
> appending a 'b' character to the mode string.
>
More information about the Python-list
mailing list