copy byte array into memorystream code example Example: c# byte array to stream Stream stream = new MemoryStream(byteArray);