Hi,
I've been looking for an example on how to retrieve data from SQLite DB (especially and image) and send it across to a server. Retrieving data from SQLite DB I can do but i'm not sure of how to begin the process preparing of sending data across using JSON GENERATOR and also converting image to base64. Basically this is where I'm stuck;
'.. other code is here
Main.cur = Main.aSQL.ExecQuery2("SELECT * FROM product WHERE ArtistID_fk = ?", Array As String(Main.globID)) 'i now have the following values id, name, price, image_blob in the cursor
'.. code for how to generate simple JSON Object like this {"id": id, "name": name} etc
I've been looking for an example on how to retrieve data from SQLite DB (especially and image) and send it across to a server. Retrieving data from SQLite DB I can do but i'm not sure of how to begin the process preparing of sending data across using JSON GENERATOR and also converting image to base64. Basically this is where I'm stuck;
'.. other code is here
Main.cur = Main.aSQL.ExecQuery2("SELECT * FROM product WHERE ArtistID_fk = ?", Array As String(Main.globID)) 'i now have the following values id, name, price, image_blob in the cursor
'.. code for how to generate simple JSON Object like this {"id": id, "name": name} etc