gridfsReadFile

IN: mongo - active connection to the MongoDB instance. gridfsBucketName - full path to the GridFS parent of collections .files and .chunks. name - file name RETURN: The entire file contents in an array.

  1. ubyte[] gridfsReadFile(MongoConnection mongo, string gridfsBucketName, ObjectId id)
  2. ubyte[] gridfsReadFile(MongoConnection mongo, string gridfsBucketName, string name)
    ubyte[]
    gridfsReadFile
    (,
    const string gridfsBucketName
    ,
    const string name
    )

Throws

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

Meta