Method DownloadToStream
DownloadToStream(TFileId, Stream, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and writes the contents to a stream.
void DownloadToStream(TFileId id, Stream destination, GridFSDownloadOptions options = null, CancellationToken cancellationToken = default)
Parameters
id
TFileId The file id.
destination
StreamThe destination.
options
GridFSDownload Options The options.
cancellationToken
CancellationToken The cancellation token.