title: Converting System.Byte[] to the image and display in the picturebox in winform
body: <p>I have a table where the picture has been stored and while loading the form i retrieve that data and data is in System.Byte[].</p>
  
  <p>I want this to display in the picture box in window form. 
   I am using C# language and SQL SERVER 2005</p>
  
  <p>my code goes like this : </p>
  
  <pre><code>            Byte[] byteBLOBData = (Byte[])(dt.Rows[count]["stud_photo"]);
             MemoryStream ms = new MemoryStream(byteBLOBData);
             ms.Write(byteBLOBData, 0, byteBLOBData.Length);
  
             photo.Image = Image.FromStream(ms); --- here i am having an error "Parameter not valid"
  </code></pre>
  
  <p>Please can anyone help me ...Its very important for my project. Thank you in advance </p>