I
i
Hi,
I'm looking for a way to reverse the effect of this particular
function:
public static string bin2hex(string bindata)
{
byte[] bytes =
Encoding.GetEncoding(1252).GetBytes(bindata);
string hexString = "";
for (int ii = 0; ii < bytes.Length; ii++)
{
hexString += bytes[ii].ToString("x2");
}
return hexString;
}
The signature of the function I'm trying to write would be public
static string hex2bin(string hexdata), but no luck so far.
Any ideas?
Thanks in advance.
I'm looking for a way to reverse the effect of this particular
function:
public static string bin2hex(string bindata)
{
byte[] bytes =
Encoding.GetEncoding(1252).GetBytes(bindata);
string hexString = "";
for (int ii = 0; ii < bytes.Length; ii++)
{
hexString += bytes[ii].ToString("x2");
}
return hexString;
}
The signature of the function I'm trying to write would be public
static string hex2bin(string hexdata), but no luck so far.
Any ideas?
Thanks in advance.