title: Stream_get_content not working for the second time?
body: <p>I am working with a stream_get_content the first time. Everything seems ok until i tried to read the content from the stream for the second time.</p>
  
  <p>if my value that pass to the stream_get_content is repeating  , return empty value !?</p>
  
  <p>but if my value isn't repeating everything is good!!!!</p>
  
  <pre><code>public function makeAvatar($value)
  {
      $file_result = "data:image/gif;base64,";
      $file_result .= base64_encode(stream_get_contents($value));
      return $file_result;
  }
  </code></pre>