title: Converting An Array of Byte[] To A Bitmap
body: <p>I have a collection of Bitmaps that are stored in a <code>List&lt;byte[]&gt; </code>object.  I want to combine all those <code>Bitmap</code>s into one image (kinda like a paneramic) without converting them back to bitmaps. I've tried using a <code>MemoryStream</code> (see below) but it doesn't seem to work.  I always run out of memory or the image comes out corrupted.  I would appreciate any thoughts/advice on the matter.</p>
  <pre><code>List&lt;byte[]&gt; FrameList = new List&lt;byte[]&gt;();
  
  using (MemoryStream ms = new MemoryStream())
  {
      for (int i = 0; i &lt; FrameList.Count; i++)
      {
          //Does not work
          ms.Write(FrameList[i], i * FrameList[i].Length, FrameList[i].Length);
          //Does not work
          ms.Write(FrameList[i], 0, FrameList[i].Length); 
      }
      Bitmap img = (Bitmap)Bitmap.FromStream(ms);
      img.Save(&quot;D:\\testing.jpg&quot;, System.Drawing.Imaging.ImageFormat.Jpeg);
   }
  </code></pre>