poi workbook转成流
try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); workbook.write(bos); byte[] barray = bos.toByteArray(); InputStream is = new ByteArrayInputStream(barray); } catch (IOException e) { e.printStackTrace(); }
看完打开支付宝扫一扫领个红包吧!
![](https://files.cnblogs.com/files/shihaiming/zhifubao_red.gif)