472,353 Members | 2,007 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

seek in a zip file??

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?
Can i know the offset in a zip file?? i know the offset in the big one.
Any idea will be welcome.

Thanks.

Enrique
Madrid- Spain

**AVISO DE CONFIDENCIALIDAD**
La información contenida en este mensaje y archivos es privada y confidencial estando dirigida solamente al destinatario. Si Ud. ha recibido esta información por error, por favor, proceda a su inmediata destrucción. Cualquier opinión o punto de vista contenido en este mensaje corresponde al remitente y necesariamente no representa la opinión del GRUPO XEROX.

Jul 18 '05 #1
2 3985
Enrique <en************@xgs-spain.com> wrote:
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?
Can i know the offset in a zip file?? i know the offset in the big one.
Any idea will be welcome.


I used dictzip for the same purpose, and it works well.
download serpento from
http://melkor.dnp.fmph.uniba.sk/~garabik/serpento/
and look for dictzip module
(compress the files with dictzip from dictd package)

--
-----------------------------------------------------------
| Radovan GarabÃ*k http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
Jul 18 '05 #2
"Enrique" <en************@xgs-spain.com> wrote in message news:ma************************************@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.
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Shu-Hsien Sheu | last post by:
Hi, Does the seek method would close the file object after using a for loop? My program looks like this: f = open('somefile', 'r') for lines...
1
by: Amy G | last post by:
"Peter Otten" <__peter__@web.de> wrote in message news:btjbot$f56$00$1@news.t-online.com... > You can open the file in "r+" mode and then...
3
by: Pernell Williams | last post by:
Hi all: I am new to Python, and this is my first post (and it won't be my last!), so HELLO EVERYONE!! I am attempting to use "xreadlines", an...
0
by: Prabhu Ramachandran | last post by:
Hi, I noticed peculiar behavior under Python-2.3.4 under Win32. When I run something like this: f = open('t.txt', 'wb')...
1
by: Waitman Gobble | last post by:
Hello, I am new to Python. I am having trouble with zipfile.py. On a Linux machine with python 2.4.2 I have trouble opening a zipfile. Python...
1
by: Derrick | last post by:
I'm writing a home grown csv text file search, have sorted "id" in the first "column". Other info after that in the "row". I seek half way thru...
11
by: Tiger | last post by:
We can use seek() in the FileStream class,as we know. But I found that seek() is not work correctly in StreamReader. Who can tell me how to use...
59
by: Rico | last post by:
Hello, I have an application that I'm converting to Access 2003 and SQL Server 2005 Express. The application uses extensive use of DAO and the...
2
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post by:
I'm having a problem with the File object's seek() method. Specifically, I cannot use it to seek to a location in a binary file that is greater...
0
by: Anthony Jones | last post by:
"DR" <softwareengineer98037@yahoo.comwrote in message news:OZoyDzR8IHA.1200@TK2MSFTNGP04.phx.gbl... of A simple experiment in .NET 2.0 and...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.