1MONGOC_GRIDFS_BUCKET_OPEN_UPLMOOANDG_OSCT_RlGEiRAbIMmD_oFWnSIg_ToBHcU_CIKDE(T3_)OPEN_UPLOAD_STREAM_WITH_ID(3)
2
3
4
6 mongoc_stream_t *
7 mongoc_gridfs_bucket_open_upload_stream_with_id (mongoc_gridfs_bucket_t *bucket,
8 const bson_value_t *file_id,
9 const char *filename,
10 const bson_t *opts,
11 bson_error_t *error)
12 BSON_GNUC_WARN_UNUSED_RESULT;
13
15 • bucket: A mongoc_gridfs_bucket_t.
16
17 • file_id: A bson_value_t specifying the id of the created file.
18
19 • filename: The name of the file to create.
20
21 • opts: A bson_t or NULL.
22
23 • error: A bson_error_t to receive any error or NULL.
24
25 opts may be NULL or a BSON document with additional command options:
26
27 • chunkSizeBytes: An int32 chunk size to use for this file. Overrides
28 the chunkSizeBytes set on bucket.
29
30 • metadata: A bson_t representing metadata to include with the file.
31
33 Opens a stream for writing to a new file in GridFS for a specified file
34 id. To have libmongoc generate an id, use
35 mongoc_gridfs_bucket_open_upload_stream().
36
38 A mongoc_stream_t that can be written to or NULL on failure. Errors on
39 this stream can be retrieved with mongoc_gridfs_bucket_stream_error().
40 After calling mongoc_stream_close() the file is completely written in
41 GridFS.
42
43 SEE ALSO:
44 mongoc_gridfs_bucket_open_upload_stream()
45
46 mongoc_gridfs_bucket_stream_error()
47
48
50 MongoDB, Inc
51
53 2017-present, MongoDB, Inc
54
55
56
57
581.25.1 MONGONCo_vGR0I8D,FS2_0B2U3CKET_OPEN_UPLOAD_STREAM_WITH_ID(3)