protected function localFileStream() {

    $tmp = fopen('php://temp', 'rw');
    fwrite($tmp, $this->content(), $this->contentLength());
    rewind($tmp);

    return $tmp;
  }
protected function localFileStream() {

    $tmp = fopen('php://temp', 'rw');
    fwrite($tmp, $this->content(), $this->contentLength());
    rewind($tmp);

    return $tmp;
  }
protected function localFileStream ( ) { $ tmp = fopen ( 'php://temp' , 'rw' ) ; fwrite ( $ tmp , $ this -> content ( ) , $ this -> contentLength ( ) ) ; rewind ( $ tmp ) ; return $ tmp ; }
Transform a local copy of content into a file stream.

This buffers the content into a stream resource and then returns
the stream resource. The resource is not used internally, and its
data is never written back to the remote object storage.
Transform a local copy of content into a file stream .