我正在尝试解压缩一个仅包含1个文本文件的压缩存档(大约30-40 mb)。
由于某种原因我一直收到以下错误,我不知道如何理解它!
error: inflate error data error
at /usr/local/share/perl/5.10.0/Archive/Zip/Member.pm line 862
Archive::Zip::Member::_inflateChunk('Archive::Zip::ZipFileMember=HASH(0x95022a8)', 'SCALAR(0x9400a88)') called at /usr/local/share/perl/5.10.0/Archive/Zip/Member.pm line 798
Archive::Zip::Member::readChunk('Archive::Zip::ZipFileMember=HASH(0x95022a8)', 32768) called at /usr/local/share/perl/5.10.0/Archive/Zip/Member.pm line 1063
Archive::Zip::Member::_writeData('Archive::Zip::ZipFileMember=HASH(0x95022a8)', 'IO::File=GLOB(0x9502688)') called at /usr/local/share/perl/5.10.0/Archive/Zip/Member.pm line 991
Archive::Zip::Member::extractToFileHandle('Archive::Zip::ZipFileMember=HASH(0x95022a8)', 'IO::File=GLOB(0x9502688)') called at /usr/local/share/perl/5.10.0/Archive/Zip/Member.pm line 488
Archive::Zip::Member::extractToFileNamed('Archive::Zip::ZipFileMember=HASH(0x95022a8)', '/home/websync/3rdParties/SDCDcatalogs//90000LeadingEdge_Catal...') called at grabsdcd.pl line 39
有谁知道这条消息是什么?这是我做错了还是文件被自己弄坏了?
谢谢!
答案 0 :(得分:0)
在我的情况下,这是因为zip文件已经下载为ascii。一旦我将下载设置为二进制,问题就会消失。
净:: FTP
$ftp->binary();
$ftp->get.......
注意:'二进制'就在'get'之前。