Method DownloadToStreamByName
DownloadToStreamByName(string, Stream, GridFSDownloadByNameOptions, CancellationToken)
Downloads a file stored in GridFS and writes the contents to a stream.
public void DownloadToStreamByName(string filename, Stream destination, GridFSDownloadByNameOptions options = null, CancellationToken cancellationToken = default)
Parameters
filename
stringThe filename.
destination
StreamThe destination.
options
GridFSDownloadByNameOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.