Table of Contents

Method DownloadToStreamByName

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

DownloadToStreamByName(string, Stream, GridFSDownloadByNameOptions, CancellationToken)

Downloads a file stored in GridFS and writes the contents to a stream.

void DownloadToStreamByName(string filename, Stream destination, GridFSDownloadByNameOptions options = null, CancellationToken cancellationToken = default)

Parameters

filename string

The filename.

destination Stream

The destination.

options GridFSDownloadByNameOptions

The options.

cancellationToken CancellationToken

The cancellation token.