1MONGOC_GRIDFS_CREATE_FILE_FROM_STREAlMi(b3mM)oOnNgGoOcC_GRIDFS_CREATE_FILE_FROM_STREAM(3)
2
3
4
6 mongoc_gridfs_file_t *
7 mongoc_gridfs_create_file_from_stream (mongoc_gridfs_t *gridfs,
8 mongoc_stream_t *stream,
9 mongoc_gridfs_file_opt_t *opt)
10 BSON_GNUC_WARN_UNUSED_RESULT;
11
13 • gridfs: A mongoc_gridfs_t.
14
15 • stream: A mongoc_stream_t.
16
17 • opt: A mongoc_gridfs_file_opt_t to specify file options.
18
20 This function shall create a new mongoc_gridfs_file_t and fill it with
21 the contents of stream. Note that this function will read from stream
22 until End of File, making it best suited for file-backed streams.
23
25 A newly allocated mongoc_gridfs_file_t that should be freed with
26 mongoc_gridfs_file_destroy() when no longer in use. Returns NULL and
27 logs an error message if there is a network or server error writing
28 data to the MongoDB server.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.25.1 Nov 08M,ON2G0O2C3_GRIDFS_CREATE_FILE_FROM_STREAM(3)