I have image and a blob (photo) taken from galary via contentchooser, how can I Insert Into Database at the sametime ?
B4X:
Query = "INSERT INTO persons VALUES (NULL, ?, ?, ?, ?, ?, ?, ?)"
Activity2.SQL1.ExecNonQuery2(Query, ArrayAsString(edtFirstName.Text, edtLastName.Text, spnCinsiyet.SelectedItem, edtBirthDay.Text, edtBirthCity.Text, edtFatherName.Text))
Query ="INSERT INTO persons VALUES( NULL, NULL,NULL, NULL,NULL, NULL, NULL, ?)"
Activity2.SQL1.ExecNonQuery2(Query, ArrayAsObject(Buffer))