The USFile WriteBinaryFile Method

Previous Next

See Also

The WriteBinaryFile method writes binary data to a file.

The syntax is:

INVOKE USFile.WriteBinaryFile

WITH

SELECT <FileName>, <value>

Where FileName is the name of the file to write to. The name is allowed to contain environment variables. If the file already exists, all data in the existing file will be lost.

Example:

INVOKE USFile.WriteBinaryFile

WITH

SELECT '%TEMP%\ToursOverviewFileCopy.pdf', tours_pdf

FROM ToursBackup

WHERE id = 1