ayi <p>Comment convertir un struct System.Byte byte<span class="chcklst-box fa fa-square-o"></span> en objet System.IO.Stream en C# ?</p>
ayi_2 <p>La façon la plus simple de convertir un tableau d’octets en flux est d’utiliser la classe <a href="http://msdn.microsoft.com/en-us/library/system.io.memorystream.aspx"><code>MemoryStream</code></a> :</p> <pre><code class="lang-auto">Stream stream = new MemoryStream(byteArray); </code></pre>