There is no direct way to get hex data into a string in TCL (that I know of).
You could do:
set hexcodes "f4e301ab"
regsub -all {..} $hexcodes {%\0} hextemp
set hexstring [ns_urldecode $hextemp]
Would work as long as you don't have a zero byte. TCL doesn't handle zero
bytes well in strings.
Jim
>
> in the code fragment:
>
> set password "0xf4e301ab..."
> ns_db sp_start $db stp_check_password
> ns_db sp_setparam $db password binary(32) in $password
> ns_db sp_exec $db
>
> password doesn't get transferred correctly to Sybase.
> I've also tried "f4e301ab..." but that didn't work, either.
>
> Has anyone done this before?
>
> Thanks,
>
> Rob
>