Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 XML 中存储 Byte[] 数组的简单方法是什么(使用 C#)?
用于Convert.ToBase64String(byte[])将其转换为 base 64 表示并存储结果字符串。
Convert.ToBase64String(byte[])
byte[]您可以通过调用Convert.FromBase64String(string)方法取回。
byte[]
Convert.FromBase64String(string)