seek in a zip file??

Serge Orlov sombDELETE at pobox.ru
Fri Dec 12 07:46:31 EST 2003


>"Enrique" <enrique.palomo at xgs-spain.com> wrote in message news:mailman.63.1071135997.9307.python-list at python.org...
> hello all!
> i´m working with big size files, to maintain them, it would be better to
> compress the files.
> to recover a little part of the big file, how can i extract that little
> parte instead of the whole file that will bring a lot of time?
It's impossible by design of zip compression algorithm.

> Can i know the offset in a zip file?? i know the offset in the big one.
> Any idea will be welcome.
Pack your file in small chunks (for example 256K) and hide
this fact from your main program using small wrapper.
Or use file system compression (available on windows ntfs filesystem)
Or find a compression library that allows random access
and generate a wrapper for it using SWIG.






More information about the Python-list mailing list