Dim ListOfMaps As List
ListOfMaps.Initialize
Dim aMap As Map
aMap.Initialize
aMap.Put("ProductID", NewProdID)
aMap.Put("Name", txtProdName.Text)
aMap.Put("Size", txtSize.Text)
aMap.Put("Price", txtPrice.Text)
aMap.Put("Description", txtProdDes.Text)
aMap.Put("Type", spType.SelectedItem)
aMap.Put("ArtistID_fk", Main.globID)
'THIS IS WHERE I INSERT THE IMAGE WHICH I LATER TRY TO EXTRACT. AM I DOING IT RIGHT?
If picSelected Then
aMap.Put("Picture", imgSelected.Bitmap) 'THIS IS WHERE I INSERT THE IMAGE FROM GALLERY
Else
imgSelected.Bitmap = LoadBitmap(File.DirAssets, "empty_gallery.png")
aMap.Put("Picture", imgSelected.Bitmap)
End If
ListOfMaps.Add(aMap)
DBUtils.InsertMaps(Main.aSQL,Main.DBTableProduct, ListOfMaps)