1MONGOC_GRIDFS_BUCKET_OPEN_UPLMOOANDG_OSCT_RlGEiRAbIMmD_oFWnSIg_ToBHcU_CIKDE(T3_)OPEN_UPLOAD_STREAM_WITH_ID(3)
2
3
4

NAME

6       mongoc_gridfs_bucket_open_upload_stream_with_id          -         mon‐
7       goc_gridfs_bucket_open_upload_stream_with_id()
8

SYNOPSIS

10          mongoc_stream_t *
11          mongoc_gridfs_bucket_open_upload_stream_with_id (mongoc_gridfs_bucket_t *bucket,
12                                                           const bson_value_t *file_id,
13                                                           const char *filename,
14                                                           const bson_t *opts,
15                                                           bson_error_t *error)
16             BSON_GNUC_WARN_UNUSED_RESULT;
17

PARAMETERS

19bucket: A mongoc_gridfs_bucket_t.
20
21file_id: A bson_value_t specifying the id of the created file.
22
23filename: The name of the file to create.
24
25opts: A bson_t or NULL.
26
27error: A bson_error_t to receive any error or NULL.
28
29       opts may be NULL or a BSON document with additional command options:
30
31chunkSizeBytes: An int32 chunk size to use for this  file.  Overrides
32         the chunkSizeBytes set on bucket.
33
34metadata: A bson_t representing metadata to include with the file.
35

DESCRIPTION

37       Opens a stream for writing to a new file in GridFS for a specified file
38       id.      To     have     libmongoc     generate     an     id,      use
39       mongoc_gridfs_bucket_open_upload_stream().
40

RETURNS

42       A  mongoc_stream_t that can be written to or NULL on failure. Errors on
43       this stream can be retrieved with  mongoc_gridfs_bucket_stream_error().
44       After  calling  mongoc_stream_close() the file is completely written in
45       GridFS.
46
47       SEE ALSO:
48          mongoc_gridfs_bucket_open_upload_stream()
49
50          mongoc_gridfs_bucket_stream_error()
51
52

AUTHOR

54       MongoDB, Inc
55
57       2017-present, MongoDB, Inc
58
59
60
61
621.23.1                      MONGOOCc_tGR2I0D,FS2_0B2U2CKET_OPEN_UPLOAD_STREAM_WITH_ID(3)
Impressum