Skip to main content

ParallelModelBlobClient.DownloadBytesAsync method

Downloads the specified blob into a byte array.

public Task<byte[]> DownloadBytesAsync(Guid modelId, Guid blobId, string encryptionKey,
TimeSpan? timeout = default, CancellationToken cancellationToken = default)
parameterdescription
modelIdThe non-empty identifier of the model.
blobIdThe non-empty identifier of the blob.
encryptionKeyThe encryption key supplied with the blob request.
timeoutThe optional timeout for the operation.
cancellationTokenThe token used to cancel the operation.

Return Value​

A task containing the downloaded bytes.

Exceptions​

exceptioncondition
ParallelModelConfigurationExceptionThe model or blob identifier is empty.
ParallelModelTransportExceptionAn HTTP request exception occurs while reading the response content.

See Also​