wodFtpDLX ActiveX Control - GetFileAt64 Method
      
 

Description

Receives a file from the server, starting at given position.


Return Type

None  


Syntax

object.GetFileAt64 [LocalPath], [RemoteFile], RemotePosLo, RemotePosHi, SizeLo, SizeHi



The GetFileAt64 Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodFtpDLX.
LocalPath Optional. A Variant value. Full path to filename (or directory)  on your local disk.
RemoteFile Optional. A Variant value. Full path to filename on the server.
RemotePosLo Required. A lower long value for 64 bit integer that specifies the position in the file at which copying will start.
RemotePosHi Required. A higher long value for 64 bit integer that specifies the position in the file at which copying will start.
SizeLo Required. A lower long value of 64 bit integer that specifies size of the data to copy locally.
SizeHi Required. A higher long value of 64 bit integer that specifies size of the data to copy locally.

Remarks

GetFileAt64 method will initiate copying of part of the file residing on remote server to the local computer. During the transfer, Progress event will be fired several times, depending on your network speed and length of the file. When the copying is completed, Done event will be fired.

If an error occurs during transfer, Done event will be fired immediately containing ErrorCode and description for the error, and transfer will be aborted. If you want to continue it later, or try to re-receive the file, initiate GetFileAt64 method again (immediately or after reconnecting, depends on error that occurred). You may not use the Resume property with GetFileAt64. To continue reading from the remote file, specify the RemotePos argument, increased by the amount of data that you received in your previous call.

Please read help for GetFile to get more general info about downloading a file.

If SizeLo/SizeHi arguments are set to 0 then remote file will be transferred from RemotePosLo/RemotePosHi point, up to its end.