C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Any limit on the size of the file being zipped?

rated by 0 users
This post has 6 Replies | 1 Follower

Top 10 Contributor
Posts 89,785
newsgroup_archive Posted: Fri, Jun 24 2005 10:30 AM

Hi,

1. Will there be any limit on the size of an individual file
being zipped?
2. Will there be any limit on the size of the final zip file?

Thanks in advance!
Peter

Click here to view the original newsgroup article (read only).

Top 10 Contributor
Posts 89,785

"Peter" wrote:
>
>Hi,
>
>1. Will there be any limit on the size of an individual file
> being zipped?
>2. Will there be any limit on the size of the final zip file?
>
>Thanks in advance!
>Peter

Click here to view the original newsgroup article (read only).

Top 10 Contributor
Posts 89,785
Hi Peter

> 1. Will there be any limit on the size of an individual file being zipped?
> 2. Will there be any limit on the size of the final zip file?


Yes. The zip format uses 32-bit integers for file sizes, so the largest
single-file zip archive you can create is 4294967296 (4.3gig). The same
restriction applies to individual files before compression.


Click here to view the original newsgroup article (read only).

Top 100 Contributor
Posts 54
saint168 replied on Mon, Jan 28 2008 3:06 PM

Is there any plan to support larger file size in the future?  I am using c1zip to compress our sql backup and the backup size is over 4.2g now.  c1zip did not throw any exception when it tried to compress the 4.2g file but created a invalid zip file that is way smaller than it should.  I think an exception will help so the calling program can at least find out the compression was not successful.

Top 25 Contributor
Posts 456
C1_JamesS replied on Thu, Feb 14 2008 5:18 AM

Hello,

 

Thanks for reporting this issue to us. I would suggest you to please send an email to support@componentone.com so that we can look further into this.

 

Best Regards,

James Smith

<saint168> wrote in message news:201399@10.0.1.98...

Is there any plan to support larger file size in the future?  I am using c1zip to compress our sql backup and the backup size is over 4.2g now.  c1zip did not throw any exception when it tried to compress the 4.2g file but created a invalid zip file that is way smaller than it should.  I think an exception will help so the calling program can at least find out the compression was not successful.



http://helpcentral.componentone.com/cs/forums/p/50497/201399.aspx#201399

Not Ranked
Posts 1
PatD replied on Wed, Feb 27 2008 2:25 AM

James,

You work for C1, why don't you forward it to support?  Saint168 has done his bit reporting the problem.  Now you want him to report it again?  I don't think that's the kind of service C1 was built on.

Top 10 Contributor
Posts 2,707

We would love to support larger files, but we don't own the zip file specification, so unfortunately we cannot change it.

The root of the problem is the fact that the zip format uses 4-byte integers to store file sizes, so the maximum size that can be represented is uint.MaxValue (4294967295) bytes.

I agree with you 100% that the C1Zip component should detect error conditions and report them rather than quietly create defective files. I will check the situation you reported and if it is still a problem, I will make sure it is fixed.

Thanks for reporting this issue.

Page 1 of 1 (7 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.