Alex Rivera | Logout

How can I safely convert a byte array into a string and back?

Asked 2009-07-15T23:38:47.817
107

I don't really care about encoding and stuff, as long as I get back the exact same byte array.

So to sum up: How do I convert a byte array into a string, and then that string back into the same byte array I started with?

Edit
Report

1 Answer

3

You can use Convert.ToBase64 documentation http://msdn.microsoft.com/en-us/library/dhx0d524.aspx

answered 2009-07-15T23:47:46.080

Your Answer