跳到主要内容

download

下载file_id指定的存储文件的内容

声明

buffer download(MongoDataTypeObjectId file_id)

参数

参数名描述
file_id

返回值

成功时返回文件内容,失败时返回nil

使用方式

返回文档