[POI-HSSF] 生成 HSSFWorkbook文件 的字节数组 Leave a Comment / Java / July 21, 2010 July 21, 2010 错误的写法是: return workbook.getBytes(); 正确的写法是: ByteArrayOutputStream out = new ByteArrayOutputStream(); workbook.write(out); return out.toByteArray();