Avaya Client Services API Reference (Windows)
Avaya Client Services API Reference (Windows)
Avaya.ClientServices
DownloadService Class
DownloadService Methods
RetrieveDataFromUrl Method
RetrieveDataFromUrl Method (DownloadServiceConfiguration, Uri, DownloadService.DownloadCompletionHandler(Byte[]))
RetrieveDataFromUrl Method (DownloadServiceConfiguration, Uri, DownloadOptionalParameters, DownloadService.DownloadWithParametersCompletionHandler(Byte[]))

# DownloadService RetrieveDataFromUrl Method (DownloadServiceConfiguration, Uri, DownloadService DownloadCompletionHandler Byte )

Retrieve arbitrary binary data from URL.

Namespace: Avaya.ClientServices
Assembly: AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
Copy

    public DownloadWatcher RetrieveDataFromUrl(
    	DownloadServiceConfiguration downloadServiceConfiguration,
    	Uri sourceURL,
    	DownloadServiceDownloadCompletionHandler<byte[]> completionHandler
    )

#### Parameters

downloadServiceConfiguration
  Type: Avaya.ClientServices
  DownloadServiceConfiguration
  Service configuration that will be used for this request.
sourceURL
  Type: System
  Uri
  URL of the source file.
completionHandler
  Type: Avaya.ClientServices
  DownloadService
  DownloadCompletionHandler
  Byte
  The completion handler for this operation.

#### Return Value

Type: DownloadWatcher
DownloadWatcher object for monitoring download requests.
Remarks
The download limit is set to 5 MB. If a client needs to download files larger than 5 MB it should use DownloadFile(DownloadServiceConfiguration, Uri, String, DownloadService
DownloadCompletionHandler
FileInfo
). Otherwise, a successful result is not guaranteed. The operation can fail with DownloadServiceError.Failed error.
See Also

#### Reference

DownloadService Class
RetrieveDataFromUrl Overload
Avaya.ClientServices Namespace

© 2017 Avaya LLC. All Rights Reserved.