Jump to content
Fabian1648

How to zip sources larger then 4GB?

Recommended Posts

Hello,

 

I have an old VCL application that uses the ZipMaster component to compile directories, and its fies and I just noticed that it is limited to compressing sources smaller than 4GB.

 

I reworked this application on Delphi 10.4.2 and converted it to a 64-bit application.

 

I found a version of ZipMaster on GitHub that claims to be compatible with Zip64, which allows you to compress sources larger than 4GB, but it doesn't work.

 

Does anyone have a solution that would allow me to zip sources larger than 4GB?

 

Thank you.

 

Share this post


Link to post
8 minutes ago, Fabian1648 said:

I found a version of ZipMaster on GitHub that claims to be compatible with Zip64, which allows you to compress sources larger than 4GB, but it doesn't work.

I'm assuming you are using this one? https://github.com/edwinyzh/ZipMaster In what way does it not work? Are you getting an error? Data corruption? Something else? What does your code look like that is not working?

8 minutes ago, Fabian1648 said:

Does anyone have a solution that would allow me to zip sources larger than 4GB?

If ZipMaster doesn't suit your needs, then just use a different Zip library. There are plenty of them available.

  • Like 1

Share this post


Link to post
21 minutes ago, Remy Lebeau said:

I'm assuming you are using this one? https://github.com/edwinyzh/ZipMaster In what way does it not work? Are you getting an error? Data corruption? Something else? What does your code look like that is not working?

If ZipMaster doesn't suit your needs, then just use a different Zip library. There are plenty of them available.

Exactly!

 

No error but when I zip a directory larger than 4GB, if have a zip file of... 128MB or something like that without any useful data. When I zip a directory less than 4 GB, I have a useful zip file with all items zipped..

Edited by Fabian1648

Share this post


Link to post

I have a faint memory that somewhere around D11 or D12 Zip64 was added to System.Zip's very own TZipFile, getting rid of the 4GB limitation.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×