login about faq

I am using the Chilkat Zip class to submit files to a government agency. They are telling me now that they do not accept files that are compressed using 64-bit encoding. They only accept 32-bit encoding. I do not specify the encoding anywhere in the code. Is there a way to force '32-bit encoding' when creating a zip file?

A simplified version of my code:

      theZipFile.NewZip(mstrFilePathList(0) & theZipName)
      theZipFile.AppendOneFileOrDir(mstrFilePathList(intInd) & mstrFileNameList(intInd))

asked Dec 18 '14 at 11:11

Eric500001's gravatar image


I don't understand what they mean by "32-bit encoding". A zip archive has a file format, not an "encoding". If a file within the .zip is larger than 4GB, or if the total size of the .zip is more than 4GB, then the ZIP64 file format is automatically used by Chilkat. There is no other choice -- you can't go bigger than 4GB with 32-bits. Chilkat should not be using the ZIP64 format unless it is required because of size.


answered Dec 18 '14 at 11:38

chilkat's gravatar image

chilkat ♦♦

I don't understand it either. The file itself is only about 5k. Is there a way to verify that ZIP32 format (if there is such a thing) is being used? I think what they want to do is open the file to look at it but their own software won't open it. For me, WINRAR opens it just fine.

(Dec 18 '14 at 12:52) Eric500001

If the resultant .zip is small,then send it to me at support@chilkatsoft.com. I can quickly have a look in a hex editor to see if the ZIP64 records exist at the very end of the .zip.


answered Dec 19 '14 at 08:58

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Dec 18 '14 at 11:11

Seen: 740 times

Last updated: Dec 19 '14 at 08:58

powered by OSQA