mongodb\file\ActiveRecord getFileResource()

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.

doc_Yii
2016-10-30 17:08:16
Comments
Leave a Comment

Please login to continue.