ParallelModelSvmClient.DownloadToStreamAsync method
Downloads an artifact into a caller-owned stream.
public Task DownloadToStreamAsync(Guid modelId, Guid jobId, Guid blobId, Stream destination,
string computeSize, string inputEncryptionKey, TimeSpan? timeout = default,
CancellationToken cancellationToken = default)
| parameter | description |
|---|---|
| modelId | The model identifier. |
| jobId | The job identifier. |
| blobId | The identifier of the artifact blob to download. |
| destination | The caller-owned writable stream that receives the downloaded bytes. |
| computeSize | The compute size identifier sent with the request. |
| inputEncryptionKey | The Base64 encryption key for the input data or artifact. |
| timeout | An optional timeout for the API request. |
| cancellationToken | A token used to cancel the asynchronous operation. |
Return Value
A task representing the asynchronous download operation.
Exceptions
| exception | condition |
|---|---|
| ParallelModelConfigurationException | A required configuration value or identifier is invalid. |
See Also
- class ParallelModelSvmClient
- namespace ParallelModel.Sdk.ML.Svm