java,import org.springframework.web.multipart.MultipartFile;,import java.io.ByteArrayInputStream;,import java.io.IOException;,,public MultipartFile byteToMultipartFile(byte[] bytes, String fileName) throws IOException {, return new MockMultipartFile(fileName, fileName, "application/octet-stream", new ByteArrayInputStream(bytes));,},
``