How to create an image from a 2-dimensional byte array?
<p>In my project after long process, i got a 2 dimensional byte array from the IR camera.</p>

<p>The byte array holds image in it...</p>

<p>How to convert that byte array to image in C#..</p>

<p>I know that by </p>

<pre><code>MemoryStream ms = new MemoryStream(byteArray);
System.drawing.Image im = Image.FromStream(ms);
</code></pre>

<p>We can pass 1 dimensional array and convert it into image..</p>

<p>If i pass 2 dimensional array as a single dimensional array.. it shows error..</p>

<p>How to rectify it..???? or else how to convert 2 dimensional byte array to image...???</p>

<p>Thank you!!</p>
