1MONGOC_GRIDFS_CREATE_FILE_FROM_SMToRnEgAoMD(B3M)CONDGrOiCv_eGrRIDFS_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
16 · gridfs: A mongoc_gridfs_t.
17
18 · stream: A mongoc_stream_t.
19
20 · opt: A mongoc_gridfs_file_opt_t to specify file options.
21
23 This function shall create a new mongoc_gridfs_file_t and fill it with
24 the contents of stream. Note that this function will read from stream
25 until End of File, making it best suited for file-backed streams.
26
28 A newly allocated mongoc_gridfs_file_t that should be freed with mon‐
29 goc_gridfs_file_destroy() when no longer in use. Returns NULL and logs
30 an error message if there is a network or server error writing data to
31 the MongoDB server.
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.14.0 Feb 22M,ON2G0O1C9_GRIDFS_CREATE_FILE_FROM_STREAM(3)