Mehdi Hadeli Mehdi Hadeli - 1 year ago 230
C# Question

How do I convert byte[] to stream in C#?

How can I convert

array to stream in C#?

Answer Source

The easiest way to convert a byte array to a stream is using the MemoryStream class:

Stream stream = new MemoryStream(byteArray);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download