Skip to main content

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)
parameterdescription
modelIdThe model identifier.
jobIdThe job identifier.
blobIdThe identifier of the artifact blob to download.
destinationThe caller-owned writable stream that receives the downloaded bytes.
computeSizeThe compute size identifier sent with the request.
inputEncryptionKeyThe Base64 encryption key for the input data or artifact.
timeoutAn optional timeout for the API request.
cancellationTokenA token used to cancel the asynchronous operation.

Return Value​

A task representing the asynchronous download operation.

Exceptions​

exceptioncondition
ParallelModelConfigurationExceptionA required configuration value or identifier is invalid.

See Also​