title: Display an image stored in MySql database in BLOB format using c#
body: <p>I am using the following function to store image in db</p>
  <pre><code> void SaveImage(byte[] image)
          {
              MySqlConnection con = new MySqlConnection(db);//new connection is made
              con.Open();
  
                  string cmdText = &quot;INSERT INTO Picture(RoomNo ,pic )VALUES ('&quot; + RoomNo.Text + &quot;',?Image)&quot;;
                  MySqlCommand cmd = new MySqlCommand(cmdText, con);
                  cmd.Parameters.Add(&quot;?Image&quot;, image);
                  cmd.ExecuteNonQuery();
           
          }
  </code></pre>
  <p>In main I am calling the function like this</p>
  <pre><code> using (var ms = new MemoryStream())
              {
                  picbox.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
                  SaveImage(ms.ToArray());
              }
  </code></pre>
  <p>I do not know how to display it in a picture box .. can any one help me???</p>