Please enable JavaScript to view this site.

ESL Documentation

FILEIO Subroutine

Decodes a hexadecimal string to a binary file.

 

call HexStringToFile(FileName_SV,
                          HexString_SV)

Parameters

FileName_SV

A string containing the file name of file that will be created.

 

HexString_SV

The string that contains the encoded data.

Description

To enable binary files to be transferred as standard text, the data can be encoded by the web server and the ODBC database local application into pairs of hexadecimal characters. Once the encoded data is received, this decoding routine provides the facility to recreate the original file.

If the string contains any non-hexadecimal characters, then the file will truncated at the point where the bad hex character is found and the "errorlevel" set.

Errors

FIO_E_ACCESSDENIED

There is problem opening the file to be written.

FIO_E_BADHEX

A non-hex character has been found in the string.

FIO_E_LOCKMEM

Unable to lock the file to write a block of data.

See Also

FileToHexString( ) subroutine.