Using binary code

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

  • the lb and rb properties parameter of a web.regSaveParam function
  • Escapedbinary data for web.convertToFormatted or web.convertFromFormatted
  • the text for a web.regFind or web.globalVerification 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.regFind or web.globalVerification 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.regSaveParam("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"