I would like to generate the (hex?) string representation of a C# byte[] of some object to be able to bulk imported into a varbinary field. When I use:
System.Text.Encoding.UTF8.GetString(X);
I am getting strings that look like this:
????N4?V?tw?c??*???9
rather than what I see when I do a select statement:
0x016C9562F6C8ACE9B25F12788E571C0CA04C2C1F4F7353F849E8199471DB18DC
Of course, this might just be a text editor issue.
Any ideas what to use in C# to be able to generate strings for bulk importing the string representation of the data into varbinary fields?