PARAMETERS
- Provided by: libmongoc-doc (Version: 2.2.2-1)
- Source: mongo-c-driver
- Report a bug
This function shall create a new mongoc_gridfs_file_t <> and fill it with the contents of stream. Note that this function will read from stream until End of File, making it best suited for file-backed streams.
A newly allocated mongoc_gridfs_file_t <> that should be freed with mongoc_gridfs_file_destroy() <> when no longer in use. Returns NULL and logs an error message if there is a network or server error writing data to the MongoDB server.
MongoDB, Inc
2009-present, MongoDB, Inc.