InputStream inputStream = null;
File file = null;
file = File.createTempFile("temp", null);
sourceFile.transferTo(file); //sourceFile为传入的MultipartFile
inputStream = new FileInputStream(file);
file.deleteOnExit();
springboot前端传的参数MultipartFile如何转换为InputStream
于 2019-10-27 14:28:44 首次发布