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