1、MultipartFile转成InputStream
MultipartFile file; byte [] byteArr=file.getBytes(); InputStream inputStream = new ByteArrayInputStream(byteArr);