How to create MappedByteBuffer from the ByteArrayInputStream?

170 Views Asked by At

I have an API which returns me the content in form of ByteArrayInputStream basically which is a video content. Now for streaming it looks MappedByteBuffer seems best fit. So how to convert this ByteArrayInputStream to an instance of MappedByteBuffer?

0

There are 0 best solutions below