天天看點

C# 檔案流相關操作

二進制轉換成圖檔:

C#中byte[]與string的轉換代碼:

C# Stream 和 byte[] 之間的轉換:

将 byte[] 轉成 Stream:

将 Stream 寫入檔案:

從檔案讀取 Stream: