' getphoto will return the array of bytes of images
Dim photo() As Byte = GetPhoto()
myCommand.CommandText = "INSERT INTO photos(PhotoID,PhotoSize,Photo) VALUES(@PhotoID,@PhotoSize,@Photo);"
myCommand.Parameters.Add("@PhotoID", MySqlDbType.VarChar).Value = txtSID.Text...