在使用ZipOutputStream下载网页上的图片并生成压缩文件时出现了一个异常,不知道是什么原因:
图片地址:http://shop.vipstatic.com/img/share/blank.png
图片地址:http://shop.vipstatic.com/img/share/blank.png
图片地址:http://shop.vipstatic.com/img/share/blank.png
Exception in thread "main" java.util.zip.ZipException: duplicate entry: /blank.png
at java.util.zip.ZipOutputStream.putNextEntry(Unknown Source)
at test2.PicFileCompression.picZip(PicFileCompression.java:106)
at test2.PicFileCompression.main(PicFileCompression.java:124)
建议把代码贴出来 方便别人本地运行呀