C#: Store byte array in XML C#: Store byte array in XML arrays arrays

C#: Store byte array in XML


Use Convert.ToBase64String(byte[]) to convert it to base 64 representation and store the resulting string.

You can get back the byte[] by calling Convert.FromBase64String(string) method.