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 DownloadFile Method

Retrieve FileInfo for downloaded data from URL. This function allows clients to download large files.

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

    public CancellableDataRetrieval DownloadFile(
    	DataTransferServiceConfiguration serviceConfiguration,
    	Uri sourceURL,
    	string destinationDirectory,
    	DataTransferOptionalParameters optionalParameters,
    	DataTransferServiceDataTransferWithDataCompletionHandler<FileInfo> 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.
destinationDirectory
  Type: System
  String
  The directory for storing downloaded data.
optionalParameters
  Type: Avaya.ClientServices
  DataTransferOptionalParameters
  Optional parameters to control download process.
completionHandler
  Type: Avaya.ClientServices
  DataTransferService
  DataTransferWithDataCompletionHandler
  FileInfo
  The completion handler for this operation.

#### Return Value

Type: CancellableDataRetrieval
CancellableDataRetrieval object for canceling the request.
See Also

#### Reference

DataTransferService Class
Avaya.ClientServices Namespace

© 2017 Avaya LLC. All Rights Reserved.