[Tutor] memory error files over 100MB

Sander Sweers sander.sweers at gmail.com
Wed Mar 11 00:10:53 CET 2009

2009/3/10 Alan Gauld <alan.gauld at btinternet.com>:
>>           newFile.write(zf.read(zfilename))
> Remember you are reading the file into memory and then writing it
> out again in a single operation, that will use twice the space of the
> uncompressed files - plus some extra for overhead.

Question, Do you mean the file in the zipfile (zfilename) or the whole
zipfile (zf)? I would expect zf.read(zfilename) to only read the
requested file in the zipfile.


More information about the Tutor mailing list