摘要:
ServletOutputStream out = null;InputStream inputStream = null;try {// 获取外部文件流URL url = new URL(path);HttpURLConnection conn = (HttpURLConnection) url.
阅读全文
posted @ 2020-03-19 15:51
毛会懂
阅读(987)
推荐(0)
编辑
摘要:
https://www.cnblogs.com/lucas1024/p/9533220.html 1.以流的方式下载. public HttpServletResponse download(String path, HttpServletResponse response) { try { //
阅读全文
posted @ 2020-03-19 15:49
毛会懂
阅读(23033)
推荐(2)
编辑
摘要:
添加依赖: <dependency> <groupId>org</groupId> <artifactId>jaudiotagger</artifactId> <version>2.0.3</version></dependency> /*** @desc : 上传音乐* @author : 毛会懂
阅读全文
posted @ 2020-03-19 14:08
毛会懂
阅读(726)
推荐(0)
编辑
摘要:
public static File multipartFileToFile(MultipartFile file) throws Exception { File toFile = null; if (file.equals("") || file.getSize() <= 0) { file =
阅读全文
posted @ 2020-03-19 14:07
毛会懂
阅读(11579)
推荐(0)
编辑