gridfsReadFile

IN: mongo - active connection to the MongoDB instance. gridfsBucketName - full path to the GridFS parent of collections .files and .chunks. id - the file object ID, i.e., it's "_id" value. RETURN: The entire file contents in an array.

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

Throws

File not found, or on corrupt properties.

Meta