title: passing the right BytesArray into the MemoryStream for Image
body: <p>there a way to determine that I am passing the right byte array to the MemoryStream if I want to create an Image out of byte array.</p>
  
  <pre><code>MemoryStream mStream = new MemoryStream();
  mStream.Write(byteArray, 0, byteArray.Lenth);
  Image imgObj = Image.FromStream(mStream);
  </code></pre>
  
  <p>How can I, if possible <strong>Correct</strong> the byteArray that it is a valid byteArray for an Image?</p>