MemoryStream ms = new MemoryStream(); //方法一 byte[] bytes = ms.ToArray(); //方法二 byte[] bytes1 = new byte[ms.Length]; ms.Read(bytes1, 0, bytes1.Length); //设置当前流的位置为流的开始位置 ms.Seek(0, SeekOrigin.Begin);
标签:数组,C#,bytes1,内存,ms,byte,MemoryStream From: https://www.cnblogs.com/xiongyingaoxiang/p/17411332.html