Back to product page

AppendData method


Displays about box.

Type

None

Syntax

  • Basic
object.AppendData Data, [RemoteFile]
The AppendData(object) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.

Remarks

Unlike AppendFile method that appends contents of local file to the server, AppendData will append contents of Data variable to specified file on the server. This is very handy feature for small files that are stored in local variables in your programs. Although there is no size limit on sending data to the server this way, try to keep data less than 64kb - everything depends on how much is your programming environment able to store in String variable.

What will AppendData do for you? Actually, it will copy contents of specified variable to some temporary file on the disk (in temporary folder), and then just append that file on the server. Keep in mind that for this method you *MUST* allow component to write to your disk. In case you're using wodFtpDLX in environment such as ASP, make sure guest user has privileges to create temporary files.

Once this temporary file is sent to the server, it will be deleted from local disk.

Do not forget that RemoteFile should always specify full absolute path (i.e. /home/joe/something) instead of relative path (i.e. joe/something).

Platforms

Windows