try following code: private void Button2_Click(object sender, System.EventArgs e) { connection.Open(); SqlCommand command1 = new SqlCommand("select imgfile from myimages where imgname=@param", connection); SqlParameter myparam = command1.Parameters.Add("@param", SqlDbType.NVarChar, 30); myparam.Value = txtimgname.Text; byte[] img = (byte[])command1.ExecuteScalar(); MemoryStream str = new MemoryStream(); str.Write(img, 0, img.Length); Bitmap bit = new Bitmap(str); Response.ContentType = "image/jpeg";//or you can select your imagetype from database or directly write it here bit.Save(Response.OutputStream, ImageFormat.Jpeg); connection.Close(); } change your database name, field name, image name, attribute name. If You Get your answer then please Rating me... Thanks.. "Are You Ready" DX-ARMY