The USFile ReadBinaryFile Method
The ReadBinaryFile method reads a complete file in binary mode. The method returns the data contained in the file.
The syntax is:
Where FileName is the name of the file to read. The name is allowed to contain environment variables.
SET tours_pdf = USFile.ReadBinaryFile('%TEMP%\ToursOverviewFile.pdf')
WHERE id = 1