1MONGOC_GRIDFS_BUCKET_OPEN_UPLOAD_STRlEiMAbOMmN(oG3nO)gCo_cGRIDFS_BUCKET_OPEN_UPLOAD_STREAM(3)
2
3
4

SYNOPSIS

6          mongoc_stream_t *
7          mongoc_gridfs_bucket_open_upload_stream (mongoc_gridfs_bucket_t *bucket,
8                                                   const char *filename,
9                                                   const bson_t *opts,
10                                                   bson_value_t *file_id,
11                                                   bson_error_t *error)
12            BSON_GNUC_WARN_UNUSED_RESULT;
13

PARAMETERS

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

DESCRIPTION

34       Opens a stream for writing to a new file in GridFS. The file id is gen‐
35       erated  automatically.   To  specify   an   explicit   file   id,   use
36       mongoc_gridfs_bucket_open_upload_stream_with_id().
37

RETURNS

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

AUTHOR

51       MongoDB, Inc
52
54       2017-present, MongoDB, Inc
55
56
57
58
591.25.1                           NovM0O8N,GO2C0_2G3RIDFS_BUCKET_OPEN_UPLOAD_STREAM(3)
Impressum