Skip to main content

ParallelModelDatasetClient.DownloadBytesAsync method

Downloads a dataset job output blob as a byte array.

public Task<byte[]> DownloadBytesAsync(Guid modelId, Guid jobId, Guid datasetBlobId,
string computeSize, string inputEncryptionKey, TimeSpan? timeout = default,
CancellationToken cancellationToken = default)
parameterdescription
modelIdThe model identifier.
jobIdThe job identifier.
datasetBlobIdThe identifier of the dataset blob to download.
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 that returns the downloaded bytes.

Exceptions​

exceptioncondition
ParallelModelConfigurationExceptionA required identifier, compute size or supplied encryption key is invalid.
ParallelModelTransportExceptionThe download is interrupted by an HTTP transport error.

See Also​