Storage/src/StorageObject.php
public function downloadAsStream(array $options = [])
    {
        return $this->connection->downloadObject(
            $this->formatEncryptionHeaders(
                $options
                + $this->encryptionData
                + array_filter($this->identity)
            )
        );
    }
public function downloadAsStream(array $options = [])
    {
        return $this->connection->downloadObject(
            $this->formatEncryptionHeaders(
                $options
                + $this->encryptionData
                + array_filter($this->identity)
            )
        );
    }
public function downloadAsStream ( array $ options = [ ] ) { return $ this -> connection -> downloadObject ( $ this -> formatEncryptionHeaders ( $ options + $ this -> encryptionData + array_filter ( $ this -> identity ) ) ) ; }
Download an object as a stream.

Example:
```
$stream = $object->downloadAsStream();
echo $stream->getContents();
```

@param array $options [optional] {
Configuration Options.

@type string $encryptionKey An AES-256 customer-supplied encryption
key. It will be neccesary to provide this when a key was used
during the object's creation. If provided one must also include
an `encryptionKeySHA256`.
@type string $encryptionKeySHA256 The SHA256 hash of the
customer-supplied encryption key. It will be neccesary to
provide this when a key was used during the object's creation.
If provided one must also include an `encryptionKey`.
}
@return StreamInterface
Download an object as a stream .