read content from the stream, not from the filesystem