1MONGOC_GRIDFS_BUCKET_OPEN_UPLMOOANDG_OSCT_RlGEiRAbIMmD_oFWnSIg_ToBHcU_CIKDE(T3_)OPEN_UPLOAD_STREAM_WITH_ID(3)
2
3
4
6 mongoc_gridfs_bucket_open_upload_stream_with_id - mon‐
7 goc_gridfs_bucket_open_upload_stream_with_id()
8
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
19 • bucket: A mongoc_gridfs_bucket_t.
20
21 • file_id: A bson_value_t specifying the id of the created file.
22
23 • filename: The name of the file to create.
24
25 • opts: A bson_t or NULL.
26
27 • error: 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
31 • chunkSizeBytes: An int32 chunk size to use for this file. Overrides
32 the chunkSizeBytes set on bucket.
33
34 • metadata: A bson_t representing metadata to include with the file.
35
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
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
54 MongoDB, Inc
55
57 2017-present, MongoDB, Inc
58
59
60
61
621.24.3 MONGOACu_gGR1I7D,FS2_0B2U3CKET_OPEN_UPLOAD_STREAM_WITH_ID(3)