gridfsReadManyFiles

IN: mongo - active connection to the MongoDB instance. gridfsBucketName - full path to the GridFS parent of collections .files and .chunks. names - array of file names. RETURN: An associative array containing file name -> entire file content mappings.

  1. ubyte[][ObjectId] gridfsReadManyFiles(MongoConnection mongo, string gridfsBucketName, ObjectId[] ids)
  2. ubyte[][string] gridfsReadManyFiles(MongoConnection mongo, string gridfsBucketName, string[] names)
    ubyte[][string]
    gridfsReadManyFiles
    (,
    const string gridfsBucketName
    ,
    const string[] names
    )

Throws

File not found, or if more than 1 file match name, or on corrupt properties.

Meta