I have an inputStream and I want to write it to a file.
I saw NIO and FileChannel that have the "transferTo" ou "transferFrom" method, and I know how to create a WriteableChannel, but I don't know how to convert my input stream to ReadableChannel.
Thank.
source
share