getFileResource() public method
This method returns a stream resource that can be used with all file functions in PHP, which deal with reading files. The contents of the file are pulled out of MongoDB on the fly, so that the whole file does not have to be loaded into memory first.
public resource getFileResource ( )return resource
File stream resource. throws yii\base\InvalidParamException
on invalid file attribute value.