implements reading of the content in streaming