Click or drag to resize

DataTransferServiceRetrieveTextFromUrl Method

Retrieve text data from URL.

Namespace:  Avaya.ClientServices
Assembly:  AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
public CancellableDataRetrieval RetrieveTextFromUrl(
	DataTransferServiceConfiguration serviceConfiguration,
	Uri sourceURL,
	DataTransferOptionalParameters optionalParameters,
	DataTransferServiceDataTransferWithDataCompletionHandler<string> completionHandler
)

Parameters

serviceConfiguration
Type: Avaya.ClientServicesDataTransferServiceConfiguration
Service configuration that will be used for this request.
sourceURL
Type: SystemUri
URL of the source file.
optionalParameters
Type: Avaya.ClientServicesDataTransferOptionalParameters
Optional parameters to control download process.
completionHandler
Type: Avaya.ClientServicesDataTransferServiceDataTransferWithDataCompletionHandlerString
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, DataTransferServiceDataTransferWithDataCompletionHandlerFileInfo). Otherwise, a successful result is not guaranteed. The operation can fail with DataTransferServiceError.Failed error. Use this method only for downloading text files(Content-Type prefix "text" or "message"). Otherwise the operation will fail with DataTransferServiceError.InvalidContentType error.
See Also