Skip to main content

ParallelModelGaussianProcessClient.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 identifier, compute size or supplied encryption key is invalid.
ArgumentNullExceptionThe destination is null.
ArgumentExceptionThe destination stream is not writable.
ParallelModelTransportExceptionThe download is interrupted by an HTTP transport error.

See Also​