I'm developing a Http server that processes fairly large size of payloads. Since Netty provide zero-copy, I thought of using zero-coping of the payload using Netty's zero-copy. But it seems Netty only provide transferTo(WritableByteChannel target, long position)
but not providing transferFrom()
like method to read the content directly in to a file.
Is that just the way it is or are there any workarounds? thanks.