0

我正在尝试解压缩一个仅包含 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

有谁知道这条消息是怎么回事?是我做错了什么还是文件本身损坏了?

谢谢!

4

1 回答 1

0

就我而言,这是因为 zip 文件已以 ascii 格式下载。一旦我将下载设置为二进制,问题就消失了。

网络::FTP

$ftp->binary();
$ftp->get.......

注意:'binary' 就在 'get' 之前

于 2013-05-09T13:09:49.203 回答