Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » UltraLite - .NET Programming » UltraLite .NET 2.0 API Reference » ULFileTransfer class » DownloadFile methods


DownloadFile(ULFileTransferProgressListener) method

Download the file specified by the properties of this object with progress events posted to the specified listener.

Visual Basic

Public Function DownloadFile( _
   ByVal listener As ULFileTransferProgressListener _
) As Boolean

public bool DownloadFile(
   ULFileTransferProgressListener listener
  • listener¬†¬† The object that receives file transfer progress events.

Return value

True if successful, false otherwise (check ULFileTransfer.StreamErrorCode and other status properties for reason).


The file specified by the ULFileTransfer.FileName is downloaded by the MobiLink server to the ULFileTransfer.DestinationPath using the ULFileTransfer.Stream, ULFileTransfer.UserName, ULFileTransfer.Password, and ULFileTransfer.Version. Other properties that affect the download are ULFileTransfer.DestinationFileName, ULFileTransfer.AuthenticationParms, ULFileTransfer.ForceDownload and ULFileTransfer.ResumePartialDownload.

To avoid file corruption, UltraLite.NET will download to a temporary file and only replace the destination file once the download has completed.

A detailed result status is reported in this object's ULFileTransfer.AuthStatus, ULFileTransfer.AuthValue, ULFileTransfer.FileAuthCode, ULFileTransfer.DownloadedFile, ULFileTransfer.StreamErrorCode, and ULFileTransfer.StreamErrorSystem.

Errors may result in no data being sent to the listener.

See also