After a 3 months break from Basic4Android to attend my maple farm during maple season I'm back on the saddle with my project...
I've been successfully transferring large amount of data from an MySQL server to SQLite true basic4android and now is the time to return some data to the MySQL server.
My current project is an invoicing system which involves detail lines and header records.
I'm using the DBUtils.ExecuteJSON method as described in the DBUtils tutorial and it is working great for my detail line records.
My problem is with my header records which contain a client signature field stored as a blob. I first tried declaring the field as 'DBUtils.DB_BLOB' (since that type is available in the DBUtils) in the JSONGenerator init but I get an error saying 'invalid type: BLOB'. I guess I was hoping that it would magically be converted to base64 and included in the JSON string. Presently, the JSON string is still being created but the signature field is completely ignored.
Is there a way to simply convert the blob value and still use the ExecuteJSON method?
Thanks for any help.
JF.
I've been successfully transferring large amount of data from an MySQL server to SQLite true basic4android and now is the time to return some data to the MySQL server.
My current project is an invoicing system which involves detail lines and header records.
I'm using the DBUtils.ExecuteJSON method as described in the DBUtils tutorial and it is working great for my detail line records.
My problem is with my header records which contain a client signature field stored as a blob. I first tried declaring the field as 'DBUtils.DB_BLOB' (since that type is available in the DBUtils) in the JSONGenerator init but I get an error saying 'invalid type: BLOB'. I guess I was hoping that it would magically be converted to base64 and included in the JSON string. Presently, the JSON string is still being created but the signature field is completely ignored.
Is there a way to simply convert the blob value and still use the ExecuteJSON method?
Thanks for any help.
JF.