mongoc_stream_gridfs_new() — MongoDB C Driver 1.6.3

- MongoDB C Driver 1.6.3 »
- API Reference »
- mongoc_stream_gridfs_t

# mongoc_stream_gridfs_new()

## Synopsis

    mongoc_stream_t *
    mongoc_stream_gridfs_new (mongoc_gridfs_file_t *file);

## Parameters

- `file`: A mongoc_gridfs_file_t.

This function shall create a new mongoc_gridfs_file_t. This function does not transfer ownership of `file`. Therefore, `file` must remain valid for the lifetime of this stream.

## Returns

A newly allocated mongoc_stream_gridfs_t if successful, otherwise `NULL`.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.