Converting string to byte
BinaryConverter.ToString(byte[]) converts a byte array to a string such as "AA-7E-81". Does anybody know how to do the reverse conversion? The obvious approach is to parse the string manully, but I think .net framework could have something to facilitate this operation.
I came across this problem when I needed to persist a byte array into an XML file. If anybody know the better approach than BinaryConverter.ToString, please let me know.
bilnaadPosted Jan 1, 2005, 6:10 PM
jhtchinaPosted Dec 30, 2004, 1:29 AM
jhtchinaPosted Dec 30, 2004, 1:28 AM
AdministratorPosted Feb 22, 2003, 8:12 PM
AdministratorPosted Feb 22, 2003, 1:39 PM
AdministratorPosted Feb 21, 2003, 7:25 AM