List of utility methods to do ByteBuffer to InputStream Convert
InputStream | toStream(ByteBuffer byteBuffer) Wraps a ByteBuffer in an InputStream. byte[] bytes = new byte[byteBuffer.remaining()]; byteBuffer.get(bytes); return new ByteArrayInputStream(bytes); |