how can I put a 1Gb file in a zipfile??
rotzjes at wanadoo.nl
Sun Mar 20 20:40:18 CET 2005
Christos TZOTZIOY Georgiou wrote:
> On Sun, 20 Mar 2005 10:44:06 +0100, rumours say that Bennie <rotzjes at wanadoo.nl>
> might have written:
>>I have a problem with ZipFile.
>>It works okay untily I come across a file that is greater then 1Gb.
>>Then it exit with the error:
>> OverflowError: long int too large to convert to int
>>How can I fix this?
> AFAIR there is a 4GiB (or 2GiB) size limit applying both to files added to zip
> and to the total size of the zip file. This limit comes from the zip file
> specification (32 bit offsets).
>> zip = zipfile.ZipFile(file, 'w')
>> for all in os.walk(os.getcwd()):
>> path = all
>> for document in all:
>> zipaccview.write(path + os.sep + document)
> Can it be that you are creating a zip file that its total size exceeds the
That is possible.
But with Winzip program it can.
How come that is with ZipFile not works
More information about the Python-list