/new code write
for a =0 to liste_cartes.size-1
carte=liste_cartes.get(a)
sql1.ExecNonQuery2("insert into cartes values ('"&carte.nom.Replace("'","''")&"',"&carte.pos&",'"&renamefile_forwrite(carte.directory).Replace("'","''")&"','"&renamefile_forwrite(carte.jpeg).Replace("'","''")&"','"&renamefile_forwrite(carte.html).Replace("'","''")&"','"&carte.web_code.Replace("'","''")&"',"&writeboolean(carte.reversible)&","&writeboolean(carte.inverser)&","&carte.bottom&","&carte.box_left&","&carte.box_top&","&carte.height&","&carte.left&","&carte.right&","&carte.top&","&carte.widht&",?)",Array As Object(savebitmaptoblob(carte.image)))
next
/end code
Same probleme when reading.