0

I have an insert method that takes all the input and stores them in the database, but I don't know how to represent the picture in the method.

For Example:

memberTableAdapter.Insert(textBox1.Text, comboBox1.Text, pictureBox1);

I cannot even compile the program because there is an error in the method's format. There is some thing should be written instead of pictureBox1 alone because it asks me to write byte[] type, or something like that.

  • The datatype for the picture in SQLserver is varbinary(MAX).

  • PictureBox is a tool that show the picture.

Could you please help what should I write instead of pictureBox1?

Thanks for you all,

user2925516
  • 65
  • 1
  • 10

0 Answers0