read byte stream