Generate a zip file, decompress the file, and an exception occurs.

Source: Internet
Author: User
Generate a zip file and decompress it. if the file is damaged, I use the compression class to compress some images and xml files into a zip file, but if the transfer type is binary during ftp download, the zip file is opened normally. if it is ascii, the zip file is damaged. In addition, Firefox and Google browsers are used to directly download the zip file, generate a zip file, and decompress the file with a corrupt error.
I use the compression class to compress some images and xml files into a zip compressed file. However, if the transfer type is binary during ftp download, the zip file can be opened normally,
If it is ascii, the zip decompression fails.
In addition, you can use Firefox and Google browsers to directly download the zip file and open it normally. However, a corrupt error occurs when you use ie to open it.

------ Solution --------------------
Zip is binary.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.