Avaya Client Services API Reference (Windows)
Avaya Client Services API Reference (Windows)
Avaya.ClientServices
DataTransferService Class
DataTransferService Methods
DownloadFile Method
RemoveFile Method
RetrieveDataFromUrl Method
RetrieveTextFromUrl Method
UploadFile Method

DataTransferService RetrieveDataFromUrl Method

Retrieve arbitrary binary data from URL.

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

    public CancellableDataRetrieval RetrieveDataFromUrl(
    	DataTransferServiceConfiguration serviceConfiguration,
    	Uri sourceURL,
    	DataTransferOptionalParameters optionalParameters,
    	DataTransferServiceDataTransferWithDataCompletionHandler<byte[]> completionHandler
    )

#### Parameters

serviceConfiguration
  Type: Avaya.ClientServices
  DataTransferServiceConfiguration
  Service configuration that will be used for this request.
sourceURL
  Type: System
  Uri
  URL of the source file.
optionalParameters
  Type: Avaya.ClientServices
  DataTransferOptionalParameters
  Optional parameters to control download process.
completionHandler
  Type: Avaya.ClientServices
  DataTransferService
  DataTransferWithDataCompletionHandler
  Byte
  The completion handler for this operation.

#### Return Value

Type: CancellableDataRetrieval
CancellableDataRetrieval object for canceling the request.
Remarks
The download limit is set to 5 MB. If a client needs to download files larger than 5 MB it should use DownloadFile(DataTransferServiceConfiguration, Uri, String, DataTransferOptionalParameters, DataTransferService
DataTransferWithDataCompletionHandler
FileInfo
). Otherwise, a successful result is not guaranteed. The operation can fail with DataTransferServiceError.Failed error.
See Also

#### Reference

DataTransferService Class
Avaya.ClientServices Namespace

© 2017 Avaya LLC. All Rights Reserved.