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.
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.
IN: mongo - active connection to the MongoDB instance. gridfsBucketName - full path to the GridFS parent of collections .files and .chunks. ids - array of file object IDs, i.e., their "_id" values. RETURN: An associative array containing id -> entire file content mappings.
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.