Home  >  Article  >  Backend Development  >  生成zip文件,解压出现损坏异常

生成zip文件,解压出现损坏异常

WBOY
WBOYOriginal
2016-06-13 13:41:061262browse

生成zip文件,解压出现损坏错误
我用压缩类将一些图片和xml文件压缩成一个zip的压缩文件, 但ftp下载的时候如果传输类型为 binary, zip文件打开正常,
如果为ascii ,zip解压出现损坏错误。
另外,用火狐、谷歌浏览器直接下载zip ,打开正常。 但用ie打开出现损坏错误

------解决方案--------------------
zip本来就是binary

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn