/// <summary> /// Downloads a file stored in GridFS and writes the contents to a stream. /// </summary> /// <param name="id">The file id.</param> /// <param name="destination">The destination.</param> /// <param name="options">The options.</param> /// <param name="cancellationToken">The cancellation token.</param> public void DownloadToStream(BsonValue id, Stream destination, GridFSDownloadOptions options = null, CancellationToken cancellationToken = default(CancellationToken)) { _bsonValueBucket.DownloadToStream(id, destination, options, cancellationToken); }