ByteBuffer 转 InputStream

 
ByteBuffer fileBytes = (ByteBuffer) context.get("excel_file");
InputStream inputStream = new ByteArrayInputStream(fileBytes.array()); 

转载于:https://www.cnblogs.com/Ivan-j2ee/archive/2012/09/19/2693656.html

你可能感兴趣的:(java)