将 XSSFWorkbook 转为 inputstream
XSSFWorkbook wb = new XSSFWorkbook(InputStream is); dstStream = new ByteArrayOutputStream(); wb.write(dstStream); byte[] bytes = dstStream.toByteArray(); ByteArrayInputStream byteStream = new ByteArrayInputStream(bytes);