I\'m trying to write a function that converts a string to a base64 byte array. I\'ve tried with this approach:
public byte[] stringToBase64ByteArray(String input
You can use:
From byte[] to string:
byte[] array = somebytearray;
string result = Convert.ToBase64String(array);
From string to byte[]:
array = Convert.FromBase64String(result);