Zip large files

BlitzMax Forums/BlitzMax Programming/Zip large files

TaskMaster(Posted 2013) [#1]
Does anybody know of a way to zip or unzip files larger than 2GB with Blitzmax?

I checked gman.zipengine and it can't handle large files.

I also checked koriolis.zipstream and it can't write zip files. I am not sure if it can unzip large files.


Henri(Posted 2013) [#2]
Hello,

you could try 7zip commandline version and run it as process and use pipe to get feedback.

-Henri


TaskMaster(Posted 2013) [#3]
I want to zip a lot of files, so, that would be a tedious process. Or I would have to temporarily copy all of the files to a temp location, then zip that. But that would be an extra long step. Would be easiest to be able to just add files on the fly. Wonder if there is some sort of DLL library that I could find to make calls into.


Henri(Posted 2013) [#4]
You don't necessarily have to zip all at once, instead you could append to existing zip file one at a time. Of course, 7zip is distributed with various source codes so theres option to make a dll from them (I'd propably try wrapping the C version as it seems easiest in Blitzmax). I had the same problem as you with large files when I was making a backup utility and I settled for the commandline option.

-Henri


Grisu(Posted 2013) [#5]
You could try GMan's Zip module: http://www.gprogs.com/viewtopic.php?id=28

Haven't tested it with 2 GB files though.


xlsior(Posted 2013) [#6]
Brcuey recently wrapped libarchive, which supports .zip among other formats.

Looking at the thread it may support files larger than 2GB?
http://www.blitzbasic.com/Community/posts.php?topic=100326


popcade(Posted 2013) [#7]
Try:

http://www.winzip.com/prodpagecl.htm

Make Larger Files
Support for the 64-bit extended Zip file format, which for all practical purposes eliminates the existing restrictions on Zip file size and capacity, is included in the Command Line Add-On.

Tested on Win7 32/64 with NTFS.

[EDIT]You need a WinZip license, or you can try find info on ZIP64 format, it works on 4GB more archive.