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)
| parameter | description |
|---|---|
| modelId | The non-empty identifier of the model. |
| blobId | The non-empty identifier of the blob. |
| encryptionKey | The encryption key supplied with the blob request. |
| timeout | The optional timeout for the operation. |
| cancellationToken | The token used to cancel the operation. |
Return Value
A task containing the downloaded bytes.
Exceptions
| exception | condition |
|---|---|
| ParallelModelConfigurationException | The model or blob identifier is empty. |
| ParallelModelTransportException | An HTTP request exception occurs while reading the response content. |
See Also
- class ParallelModelBlobClient
- namespace ParallelModel.Sdk.Shared.Blob