Skip to main content

FILEDATA

Returns file data as a byte array.

Syntax

byte[] FILEDATA(string fileName)

Example

FILEDATA("C:\\mydir\\myfile.ext")

Returns the file data as a byte[ ]. This can be used to sync files directly into databases through Data Synchronisation Studio.

info

Remember to escape the backslashes in your file path, otherwise your expression will error.

If you have a column, e.g from a File System or SharePoint Document Library, that contains the document path you can enter the column instead of a hard-coded file path.

FILEDATA(FilePath)