Table of Contents

Method OpenDownloadStream

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.dll

OpenDownloadStream(TFileId, GridFSDownloadOptions, CancellationToken)

Opens a Stream that can be used by the application to read data from a GridFS file.

GridFSDownloadStream<TFileId> OpenDownloadStream(TFileId id, GridFSDownloadOptions options = null, CancellationToken cancellationToken = default)

Parameters

id TFileId

The file id.

options GridFSDownloadOptions

The options.

cancellationToken CancellationToken

The cancellation token.

Returns

GridFSDownloadStream<TFileId>

A Stream.