13

In example

string newString = Convert.ToBase64String(byte[] array)

How would I go about converting newString to get a byte[] (byte array)?

1
  • Please rephrase your question... I'm not sure what you're asking for...... Commented Apr 3, 2016 at 13:01

3 Answers 3

23
Convert.FromBase64String(newString)
6
byte[] data = Convert.FromBase64String(newString);
string decodedString = Encoding.UTF8.GetString(data);
1
byte[] array= Convert.FromBase64String(newString);

Not the answer you're looking for? Browse other questions tagged or ask your own question.