Table of Contents

Method OpenDownloadStreamByName

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

OpenDownloadStreamByName(string, GridFSDownloadByNameOptions, CancellationToken)

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

public GridFSDownloadStream<TFileId> OpenDownloadStreamByName(string filename, GridFSDownloadByNameOptions options = null, CancellationToken cancellationToken = default)

Parameters

filename string

The filename.

options GridFSDownloadByNameOptions

The options.

cancellationToken CancellationToken

The cancellation token.

Returns

GridFSDownloadStream<TFileId>

A Stream.