byte数组转化为MultipartFile
byte[] pdfFile = new byte[1024];
InputStream inputStream = new ByteArrayInputStream(pdfFile);
MultipartFile file = new MockMultipartFile("新文件名","原文件名",ContentType.APPLICATION_OCTET_STREAM.toString(), inputStream);
byte[] pdfFile = new byte[1024];
InputStream inputStream = new ByteArrayInputStream(pdfFile);
MultipartFile file = new MockMultipartFile("新文件名","原文件名",ContentType.APPLICATION_OCTET_STREAM.toString(), inputStream);