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
Zip Files >2Gb in VO application
Zip Files >2Gb in VO application
Can't you use 3 party tools and call them by commandline, like 7 zip?
see wiki
see wiki
Zip Files >2Gb in VO application
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
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
fabrice(at)xsharp.eu
-
- Posts: 248
- Joined: Fri Oct 14, 2016 7:09 am
Zip Files >2Gb in VO application
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
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
Zip Files >2Gb in VO application
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 ?
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
fabrice(at)xsharp.eu
- ArneOrtlinghaus
- Posts: 412
- Joined: Tue Nov 10, 2015 7:48 am
- Location: Italy
Zip Files >2Gb in VO application
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
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 72 times
-
- Posts: 50
- Joined: Fri Feb 16, 2018 7:52 am
Zip Files >2Gb in VO application
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.
Zip Files >2Gb in VO application
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
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
fabrice(at)xsharp.eu
-
- Posts: 248
- Joined: Fri Oct 14, 2016 7:09 am
Zip Files >2Gb in VO application
Great Fab, thanks very much.
If I do have to reprogram this, at least I have a reliable solution available then.
Nick
If I do have to reprogram this, at least I have a reliable solution available then.
Nick
- ArneOrtlinghaus
- Posts: 412
- Joined: Tue Nov 10, 2015 7:48 am
- Location: Italy
Zip Files >2Gb in VO application
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
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