Back to product page

FileData property

Holds file data as byte array.


An array of Byte values.


  • Basic
object.FileData [= value()]
The FileData(object,value()) syntax has these parts:
objectAn expression evaluating to an object of type VirtualFile.
value()An array of Byte values. Holds raw file data.


FileData property returns contents of your virtual file through byte array (C++ users should use it as SAFEARRAY(unsigned char) values). When you write to FileData property, wodFTPServer creates temporary file, points ResolvedPath property to that file, and dumps your raw bytes to it.

When you read FileData property, wodFTPServer just reads from ResolvedPath file and returns it as an array.