That code does work exellent
But.. I have some issue with just one data file (SQLite db), that can not figure it out
Here is my code:
B4X:
File.Copy(File.DirInternal,"MyDb.db",File.DirDefaultExternal,"MyDb.db")
Dim db() As Byte=Bit.InputStreamToBytes(File.OpenInput(File.DirDefaultExternal,"MyDb.db"))
Starter.ckvs.Put(Starter.ckvsUser,"MyParam",db)
If I try with another db file, instead of this db file, all is Ok
But.. with this db file I have an error on the Sub HandleQueue into the ClientKVS Class
The error is this:
java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
tested the same code with a couple of another files, does work fine (db and txt files)
trying to see if the size of the db.. I'm using the VACUUM SQLite command without luck (never used it before, guessing from the web)
not sure if the size could be a problem (it has 2.5 Mb)