Re: zipfile extracting png files corrupt

2009-10-17 Thread Dave Angel
marks542...@yahoo.com wrote: Hi, I am using the zipfile in Python 2.4 to extract files from existing zips. It appears to work but the files extracted are corrupt. Have you done any analysis to see in what sense they are corrupt? For example, do text files work, but not binary ones? If the f

Re: zipfile extracting png files corrupt

2009-10-17 Thread marek . rocki
Have you tried opening the zip file in binary mode? Regards, Marek -- http://mail.python.org/mailman/listinfo/python-list

Re: zipfile extracting png files corrupt

2009-10-16 Thread Gabriel Genellina
En Sat, 17 Oct 2009 02:22:03 -0300, escribió: Hi, I am using the zipfile in Python 2.4 to extract files from existing zips. It appears to work but the files extracted are corrupt. Have you tested the zip files with other tools? I can't spot anything obviously wrong in your code (except a te

zipfile extracting png files corrupt

2009-10-16 Thread marks542004
Hi, I am using the zipfile in Python 2.4 to extract files from existing zips. It appears to work but the files extracted are corrupt. Here is my code : import zipfile import os, sys , shutil epath = "c:/ziptest/" fil = "J:/archives/xzips/duplicates/gothicfence_1470.zip" ferr = file((epath + "/err