Write entire input stream, not just the number of available bytes.
Changes to be able to transport bytes with UnbufferedOutputFile.
Changes to be able to transport bytes with UnbufferedOutputFile.
Streaming quality still needs to be improved.