Web Vuser Functions (WEB) > General Topics in Web Protocol > Entering Binary Code

Entering Binary Code

You can use the following format to include binary code in arguments that support binary values:


This represents the hexadecimal value that is represented by [char1][char2].

For example: \x24 is 16*2+4=36, which is a $ sign; \x2B is + sign.

Sequences that do not represent valid 2–character hexadecimal sequences are treated as ASCII text. Do not use 1–character hexadecimal sequences. For example, "\x2" is not a valid 2–character hexadecimal sequence. Use "\x02", instead.

Note that binary values appear in a script as \\x, i.e., the "x" is preceded by two backslashes. This is due to C language escaping laws. However, when generating a function using VuGen insert step dialog, you need to type only one backslash.

If you use parameterization within an argument and the parameter value contains binary characters, include only one backslash within the definition of the parameter. This is because parameter substitution does not perform any C escaping conversion.