Using Binary Code

You can use the following format to include binary code in:

  • the LB and RB properties parameter of a web_reg_save_param function
  • EscapedBinary data for web_convert_to_formatted or web_convert_from_formatted
  • the text for a web_reg_find or web_global_verification functions

\x[char1][char2]

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 by VuGen as ASCII text. Do not use 1–character hexadecimal sequences. "\x2" , for example, is not a valid 2–character hexadecimal sequence. Use "\x02" instead.

If you use binary data in parameterization, include only one backslash within the definition of the parameter. This is because parameter substitution does not perform any C–escaping conversion.

When specifying binary data in EscapedBinary data or text for a web_reg_find or web_global_verification functions , escape the backslash. For example, \\x02.

In a web_reg_xxx function, include only one backslash within the definition of the boundaries.

For example, if text.htm contains:

	 <p>
	123456~Harry^789<br>
	~ = \x7e, ^ = \x5e
	</p>

Then this command registers a find between the first tilde (`~") and the first caret (`^'):

web_reg_save_param("UserName",
	"LB/BIN=\x7e",
	"RB/BIN=\x5e",
	"SaveOffset=",
	LAST );

web_url("text.htm",
	"URL=http://localhost/text.htm",
	"TargetFrame=",
	"Resource=0",
	"RecContentType=text/html",
	"Referer=",
	"Snapshot=t1.inf",
	"Mode=HTML",
	LAST );


Action.c(22): Notify: Saving Parameter "UserName = Harry"