implemnt get_content with stream_read