Method OpenDownloadStream
OpenDownloadStream(TFileId, GridFSDownloadOptions, CancellationToken)
Opens a Stream that can be used by the application to read data from a GridFS file.
public GridFSDownloadStream<TFileId> OpenDownloadStream(TFileId id, GridFSDownloadOptions options = null, CancellationToken cancellationToken = default)
Parameters
id
TFileIdThe file id.
options
GridFSDownloadOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- GridFSDownloadStream<TFileId>
A Stream.