Zip Files >2Gb in VO application

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
NickFriend
Posts: 248
Joined: Fri Oct 14, 2016 7:09 am

Zip Files >2Gb in VO application

Post by NickFriend »

Hi all,

I'm responsible for maintaining an old VO2.8 application that uses the even older V3 DynaZip component for zipping and unzipping files. We've hit an issue where a couple of clients need to create zip files for backups that exceed 2Gb, and DynaZip won't handle it.

Does anyone know a simple solution to this, or are we going to have to change the zip component? Does FabZip handle files >2Gb? We need to keep the work required to an absolute minimum as all our efforts are in .Net these days, but we need to resolve the issue for the clients as well.

TIA

Nick
User avatar
Otto
Posts: 174
Joined: Wed Sep 30, 2015 6:22 pm

Zip Files >2Gb in VO application

Post by Otto »

Can't you use 3 party tools and call them by commandline, like 7 zip?
see wiki
User avatar
Fabrice
Posts: 405
Joined: Thu Oct 08, 2015 7:47 am
Location: France

Zip Files >2Gb in VO application

Post by Fabrice »

Hi Nick,
it's been a long time since my latest changes with FabZip :), but as far as I remember the underground component is supporting files up to 4G and then you can also use the split-file capability.

But just to be sure, I will dust-off my VO28, check, and come back

Fab
XSharp Development Team
fabrice(at)xsharp.eu
NickFriend
Posts: 248
Joined: Fri Oct 14, 2016 7:09 am

Zip Files >2Gb in VO application

Post by NickFriend »

The thing is I try to spend as little time and effort as possible on this source code, as it just distracts from the main task at hand with our work in .Net.

I was hoping someone might have come up against this before and worked out a cunning solution that only takes 5 minutes to implement ;)

I think the most likely is a swap to FabZip, but unfortunately because of the horrible spaghetti code it means quite a lot of work and probably newly introduced bugs.

Nick
User avatar
Fabrice
Posts: 405
Joined: Thu Oct 08, 2015 7:47 am
Location: France

Zip Files >2Gb in VO application

Post by Fabrice »

First, I've still haven't checked, but...

maybe writing a wrapper around FabZip that mimics Dynazip could ease the work ? (but I'm sure you have already thought that)

Have you some UI feedback like progressBar, ... or is it a silent component ?
XSharp Development Team
fabrice(at)xsharp.eu
User avatar
ArneOrtlinghaus
Posts: 384
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

Zip Files >2Gb in VO application

Post by ArneOrtlinghaus »

Hello Nick,
it is the ZIP file format that has limitations.

For bigger archives we use the free program 7z.exe with the 7z-archive format already for many years. It handles excellently files of over 100GB!

7z can be completely controlled via command line parameters. I have attached examples how we call the program.

As an alternative there is always the GUI version 7zfm.exe for unzipping parts of archives.

Arne
Attachments
7z.txt
(12.75 KiB) Downloaded 28 times
MathiasHakansson
Posts: 50
Joined: Fri Feb 16, 2018 7:52 am

Zip Files >2Gb in VO application

Post by MathiasHakansson »

PKZIP supported files up to 4Gb (2^32 bytes) (both contained files and the zip file) until version 8. After that zip64 supported very large files (2^64 bytes). 4Gb is also the maximum file size in FAT32. Lots of zip-implementations only supports file sizes up to 2Gb, like Windows XP.
User avatar
Fabrice
Posts: 405
Joined: Thu Oct 08, 2015 7:47 am
Location: France

Zip Files >2Gb in VO application

Post by Fabrice »

Nick,
I've just tried using the Demo app of FabZip :
after few corrections due to mix between DWORD/LONG that was wrong for bigger file, I have been able to create a 2.8Gb file, with some ISO inside (like Ubuntu, Suse-Leaf,.. ), so I can confirm that FabZip is able to support >2Gb files :)

Cheers,
Fab
XSharp Development Team
fabrice(at)xsharp.eu
NickFriend
Posts: 248
Joined: Fri Oct 14, 2016 7:09 am

Zip Files >2Gb in VO application

Post by NickFriend »

Great Fab, thanks very much.

If I do have to reprogram this, at least I have a reliable solution available then.

Nick
User avatar
ArneOrtlinghaus
Posts: 384
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

Zip Files >2Gb in VO application

Post by ArneOrtlinghaus »

Hi Nick,

you should think on doing something like this.

It is the zip format that has limits! If I remember correctly, it should be something like 4 GB for a single zipped file and 8 GB for the total file or vice versa. In the Internet the correct limits can be retrieved. It can happen that a program creates zip files exceeding these limits without errors and instead it has created zip files that are corrupt and cannot be opened anymore. There are different programs like PKZIPC that have extended the limits but have created a new format that cannot be read by standard zip functions. So better change the format if you need bigger sizes. Having multi media files or complex Office documents the installations have grown quickly.

Arne
Post Reply