Reads data from a specified stream.
eOk if the data was successfully read; otherwise, the method returns an appropriate error code.