Method UploadFromBytesAsync
UploadFromBytesAsync(string, byte[], GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
Task<ObjectId> UploadFromBytesAsync(string filename, byte[] source, GridFSUploadOptions options = null, CancellationToken cancellationToken = default)
Parameters
filenamestringThe filename.
sourcebyte[]The source.
optionsGridFSUploadOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.