Java从网络资源URL中获取IO流打包压缩成zip文件并下载
/**
* 从多资源文件路径获取文件流,打包成Zip压缩包
*
* @param filePaths 文件路径列表 eg: https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png
*/
public static void getZipFile(List<String> filePaths, HttpServletResponse response) {
String zipFileName .
原创
2021-09-26 13:05:45 ·
778 阅读 ·
0 评论