Reformat byte based stream example
Char based stream