Guest User

Guest User

  • Tech Writer
  • 529
  • 41k

I got this error when i call image fix it please

Nov 9 2022 11:08 PM
  Name Value Type
? ReadTimeout 'ms.ReadTimeout' threw an exception of type 'System.InvalidOperationException' int {System.InvalidOperationException}
  Name Value Type
? WriteTimeout 'ms.WriteTimeout' threw an exception of type 'System.InvalidOperationException' int {System.InvalidOperationException}
if(dataSet1.Tables[0].Rows.Count > 0)
            {
                //bunifuPictureBox6.Image = null;
                if(dataSet1.Tables[0].Rows[0][2] != System.DBNull.Value) 
                {
                    photo_aray = (byte[])dataSet1.Tables[0].Rows[0][2];
                    MemoryStream ms = new MemoryStream(photo_aray);
               
                    bunifuPictureBox6.Image = Image.FromStream(ms);
                    bunifuPictureBox6.SizeMode = PictureBoxSizeMode.StretchImage;

                }
            }


Answers (9)