Method DownloadAsBytesByNameAsync
DownloadAsBytesByNameAsync(string, GridFSDownloadByNameOptions, CancellationToken)
Downloads a file stored in GridFS and returns it as a byte array.
public Task<byte[]> DownloadAsBytesByNameAsync(string filename, GridFSDownloadByNameOptions options = null, CancellationToken cancellationToken = default)
Parameters
filename
stringThe filename.
options
GridFSDownloadByNameOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.