Method DownloadAsBytesAsync
DownloadAsBytesAsync(TFileId, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and returns it as a byte array.
public Task<byte[]> DownloadAsBytesAsync(TFileId id, GridFSDownloadOptions options = null, CancellationToken cancellationToken = default)
Parameters
id
TFileId The file id.
options
GridFSDownload Options The options.
cancellationToken
CancellationToken The cancellation token.