Java下载多图片
//imgUrls 图片地址的集合
public static void downloadPic(List<String> imgUrls, HttpServletResponse response) throws Exception {
ZipOutputStream zos = new ZipOutputStream(response.getOutputStream());
InputStream fis = null;
try {
String downloadFilename = "aptitude.zip";// 文件的名称
downloadFilename = URLEncoder.encode(downloadFilename, "UTF-8");// 转换中文否则可能会产生乱码
response.setContentType("application/octet-stream");