string query1 = "Select * from members where ID='";
query1 = query1 + txtid.Text + "'";
cmd = new MySqlCommand(query1, con);
MySqlDataReader d1 = cmd.ExecuteReader();
while (d1.Read())
{
try
{
byte[] data = (byte[])d1["image"];
using (MemoryStream stream = new MemoryStream(data))
{
pictureBox1.Image = new Bitmap(stream);
}