[Qt-interest] Reading/Writing archives

Frederic Tingaud tingaud at gostai.com
Mon Mar 15 12:07:34 CET 2010


Jeroen De Wachter a écrit :
> Any reason why you shouldn't be able to use zlib? or gzip? or zip
> (www.info-zip.org)?
>
> These are all open-source projects that provide
> compression/decompression capablity and (at first glance) all are
> available on major platforms.
>
Hello,
>From what I read, zlib works only for single-file archives.
With gzip or zip libraries, I may have missed something, but it seemed
to me that it cannot navigate in the archive file without uncompressing
it on the disk first.
> Frederic Tingaud wrote:
>> Hi all,
>>
>> I am working on a project where users can create libraries for the
>> application that would be a set of file. My first idea was to read/write
>> a zip file (or any supported archive format) containing all the files,
>> renamed with our own extension. That would allow users to have a single
>> file to distribute and they can manipulate the file outside the
>> application if they really want to.
>> I don't want to use a QProcess with an other application and I would
>> rather not uncompress the file on the user's disk.
>> The problem is that I searched the documentation and the web and I
>> cannot find anybody doing something like that except for KDE with their
>> KArchive.
>> Does anybody have an idea on a way to achieve this?
>>
>> --.
>> Frederic Tingaud
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>   
>
>


-- 
-------------------------------------------------------------------------------
Frederic TINGAUD
Ingenieur R&D - Gostai Developer Suite
http://www.gostai.com

15 rue Jean-Baptiste Berlier     Std.: +33/0 1 55 43 76 70
75013 Paris, France                Fax: +33/0 1 55 43 76 77

Member of SYROBO, Robotics Trade Association
http://www.syrobo.org
-------------------------------------------------------------------------------




More information about the Qt-interest-old mailing list