Method DownloadToStreamAsync
DownloadToStreamAsync(TFileId, Stream, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and writes the contents to a stream.
Task DownloadToStreamAsync(TFileId id, Stream destination, GridFSDownloadOptions options = null, CancellationToken cancellationToken = default)
Parameters
id
TFileIdThe file id.
destination
StreamThe destination.
options
GridFSDownloadOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A Task.