Extracting a file from a zip

BlitzMax Forums/BlitzMax Programming/Extracting a file from a zip

Rhodesy(Posted 2009) [#1]
Hello everyone,

Can anyone point me in the right direction on how to open up zips in bmax, and extract files. (I have read many posts on here, and most seem to be related to downloadable libs..)

I know there are libs out there for doing this, but I would like to try and optimize this as much as possible as I am writing something to batch process alot of ZIPs.

I have loaded the data into a bank, but my uncompress functions are not working, just returning banks with large empty sections.

I read that zlib 'can' uncompress zip. Is it true? or am I just smashing my head against a wall?

Regards

Stephen


xlsior(Posted 2009) [#2]
Koriolis's zipstream module can do what you want...

No external files necessary, it will compile straight into your own .exe


Rhodesy(Posted 2009) [#3]
I did look at that, I just wondered if it was at all possible to read a zip by uncompressing it with zlib, then poking around in the bank?

Difficult I know, just wondering if it is possible before looking into it more.