SYNOPSIS

mongoc_gridfs_file_t *file;
bson_t error;

file = mongoc_gridfs_file_find_one_by_filename (gridfs, "filename", &error);

DESCRIPTION

mongoc_gridfs_file provides a MongoDB gridfs file abstraction. It provides several apis:

IO

readv, writev, seek and tell

General file metadata

filename, length

Gridfs metadata

md5, filename, content_type, aliases, metadata, chunk_size and upload_date

THREAD SAFETY

mongoc_gridfs_file is NOT thread-safe and should only be used from one thread at a time.

EXAMPLE

For an example, see mongoc_gridfs(7)

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.