FILEIO Subroutine
Encodes a files content to textual string.
call FileToHexString(FileName_SV,
HexString_SV)
Parameters
FileName_SV
A string containing the filename of the file to be encoded.
HexString_SV
The target string to be populated with Hexadecimal encoded data.
Description
To enable binary files to be sent to a Web Server without being corrupted, this function performs a simple encoding of the content of the specified file. Each byte of the file is converted to two hexadecimal characters. Due to this simple form of encoding, the size of the string is double the size of the specified file.
Errors
FIO_E_BADMODE
The file must be available to read.
FIO_E_OUTOFMEM
Cannot allocate sufficient memory to process the file
See Also
HexStringToFile( ) subroutine.