Phalcon\Db\Adapter\MongoDB\GridFS\Bucket::openDownloadStream PHP Метод

openDownloadStream() публичный Метод

Opens a readable stream for reading a GridFS file.
public openDownloadStream ( mixed $id ) : resource
$id mixed File ID
Результат resource
    public function openDownloadStream($id)
    {
        $file = $this->collectionWrapper->findFileById($id);
        if ($file === null) {
            throw FileNotFoundException::byId($id, $this->getFilesNamespace());
        }
        return $this->openDownloadStreamByFile($file);
    }