CSharp examples for System:Byte Array
Convert byte array To Stream
using System.IO;/* ww w .jav a 2s . com*/ using System.Text; using System.Linq; using System.Collections.Generic; using System; public class Main{ public static Stream ToStream(this byte[] bytes) { Stream stream = new MemoryStream(bytes); stream.Seek(0, SeekOrigin.Begin); return stream; } }