Create file in GridFS from binary data
public storeBytes ( string $bytes, array $metadata = [] ) : MongoId | ||
$bytes | string | binary data to store in GridFS |
$metadata | array | metadata stored with file |
return | MongoId | Id of stored file |
public storeBytes ( string $bytes, array $metadata = [] ) : MongoId | ||
$bytes | string | binary data to store in GridFS |
$metadata | array | metadata stored with file |
return | MongoId | Id of stored file |