Changes to be able to transport bytes with UnbufferedOutputFile.
Streaming quality still needs to be improved.