C#: Store byte array in XML

前端 未结 1 2089
情书的邮戳
情书的邮戳 2021-02-12 13:07

What would be a simple way to store a Byte[] array in XML (using C#) ?

相关标签:
1条回答
  • 2021-02-12 13:08

    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.

    0 讨论(0)
提交回复
热议问题