[sword-devel] Zipfile module downloads
DM Smith
dmsmith555 at yahoo.com
Thu Sep 20 19:02:14 MST 2007
More results of exploration:
At zlib.net, the home of the zlib code, there is a faq question
regarding zip archives with a recommended solution:
11. Can zlib handle .zip archives?
Not by itself, no. See the directory contrib/minizip in
the zlib distribution.
Minizip is what I found by other searches. It's home is at:
http://www.winimage.com/zLibDll/minizip.html
It appears that it requires only a few files to do unzip of an archive.
What do I need to do to continue on this track? I don't want my
efforts to go to waste. I realize this might not make a 1.5.10
effort, unless it is incredibly easy and fully testable :)
In Him,
DM
On Sep 20, 2007, at 6:59 PM, DM Smith wrote:
> Troy,
> I studied the untargz code and all the other code in the zlib
> directory. It does not apply to zip files. A zipfile has a table of
> contents and the zlib code does not read it. An entry in the TOC will
> have the location of the file and it's size in the zipfile and how it
> is stored. (Typically, images are stored uncompressed.) IIRC, the TOC
> also has CRC info. I'm looking for code that reads the TOC. I have
> found some, but I'm wondering if anyone else has seen something that
> they can recommend.
>
> The zlib code essentially reads a byte stream and uncompresses it.
> There is also code present to untar a stream.
> DM
>
> On Sep 20, 2007, at 6:21 PM, Troy A. Griffitts wrote:
>
>> There is already code to unpack the mods.d.tar.gz file. I believe
>> the code
>> we used for that came from the zlib project. It may be similar to
>> what you
>> need to do for a zip file. I can't remember offhand.
>>
>>
>> DM Smith <dmsmith555 at yahoo.com> wrote:
>>> I'm looking into adding to installmgr the download of a cached
>>> zipped
>>> module, if present at the download site. Otherwise the code will
>>> work as
>>> before.
>>>
>>> I've run into an obstacle: zlib cannot read the "table of
>>> contents" in a
>>> zipfile. I'm looking for a portable way to do the unzip. Any
>>> suggestions?
>>>
>>> Many thanks,
>>> DM
>>>
>>> _______________________________________________
>>> sword-devel mailing list: sword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>> Instructions to unsubscribe/change your settings at above page
>>>
>>>
>>
>>
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.crosswire.org/pipermail/sword-devel/attachments/20070920/f8f50f8f/attachment.html
More information about the sword-devel
mailing list