天天看點

C# string byte[] Base64 常用互相轉換

參考:

<a href="http://www.cnblogs.com/zxx193/p/3605238.html?utm_source=tuicool" target="_blank">http://www.cnblogs.com/zxx193/p/3605238.html?utm_source=tuicool</a>

<a href="http://www.cnblogs.com/freeliver54/p/3430956.html" target="_blank">http://www.cnblogs.com/freeliver54/p/3430956.html</a>

<a href="http://www.cnblogs.com/simhare/archive/2007/07/18/821938.html" target="_blank">http://www.cnblogs.com/simhare/archive/2007/07/18/821938.html</a>

定義string變量為str,記憶體流變量為ms,比特數組為bt

1.字元串=&gt;比特數組

補充:

2.比特數組=&gt;字元串

3.字元串=&gt;流

4.流=&gt;字元串

5.比特數組=&gt;流

6.流=&gt;比特數組

7、byte[]與base64string的互相轉換

C# string byte[] Base64 常用互相轉換
C# string byte[] Base64 常用互相轉換

View Code

8、C# byte數組與Image的互相轉換

<a href="http://www.cnblogs.com/luxiaoxun/p/3378416.html" target="_blank">http://www.cnblogs.com/luxiaoxun/p/3378416.html</a>