Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Compressed folder becomes corrupted when larger than 2 gigabytes


View products that this article applies to.

Symptoms

When you create a compressed folder (ZIP file) that is larger than 2 gigabytes (GB), the file may no longer be readable, and may become corrupted. You do not receive any error message when you create the file, but you cannot read the file after you create it.

Note In Windows Vista and in Windows Server 2008, compressed folders can be larger than 2 GB. The folders are compressed by the DEFLATE64 algorithm. However, the DEFLATE64 algorithm is not backward compatible with earlier versions of Microsoft Windows.

↑ Back to the top


Cause

This issue can occur because the size limit for compressed folders is approximately 2 GB.

↑ Back to the top


Workaround

To work around this issue, make sure that you limit the size of a compressed folder to 2 GB or less when you create a compressed folder.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.To overcome this potential issue, a new function was introduced in 2003 Service Pack 1 that calculates the total size of all files before compression. If the combined file size prior to compression is greater than 2GB, Windows returns the error:
The compression cannot be performed because the size of resulting compressed folder is too large.

↑ Back to the top


Keywords: KB301325, kbprb, kbenv

↑ Back to the top

Article Info
Article ID : 301325
Revision : 3
Created on : 5/14/2009
Published on : 5/14/2009
Exists online : False
Views : 503