1MONGOC_GRIDFS_CREATE_FILE_FROM_STREAlMi(b3mM)oOnNgGoOcC_GRIDFS_CREATE_FILE_FROM_STREAM(3)
2
3
4

NAME

6       mongoc_gridfs_create_file_from_stream        -       mongoc_gridfs_cre‐
7       ate_file_from_stream()
8

SYNOPSIS

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

PARAMETERS

16gridfs: A mongoc_gridfs_t.
17
18stream: A mongoc_stream_t.
19
20opt: A mongoc_gridfs_file_opt_t to specify file options.
21

DESCRIPTION

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

RETURNS

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

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.17.6                           Jun 03M,ON2G0O2C1_GRIDFS_CREATE_FILE_FROM_STREAM(3)
Impressum