Cannot write to a BufferedStream while the read buffer is not empty if the underlying stream is not seekable. Ensure that ...