I changed the project after that example. But... I get the following error: Compiling generated Java code. Error
B4A line: 390
STR = \
javac 1.7.0_13
src\natura2000\mmare\arhiva.java:770: error: no suitable method found for NumberToString(byte[])
_str = "INSERT INTO POZE (ID_OBSERVATIE,TIP,ID_USER,PICTURE) VALUES ("+_id_sql+",'"+_cursor1.GetString("TIP")+"',"+BA.NumberToString(mostCurrent._main._current_user._getuserid())+","+BA.NumberToString(_cursor1.GetBlob("PICTURE"))+")";
^
method BA.NumberToString(long) is not applicable
(actual argument byte[] cannot be converted to long by method invocation conversion)
method BA.NumberToString(int) is not applicable
(actual argument byte[] cannot be converted to int by method invocation conversion)
method BA.NumberToString(double) is not applicable
(actual argument byte[] cannot be converted to double by method invocation conversion)
1 error
used code is:
STR = "INSERT INTO POZE (ID_OBSERVATIE,TIP,ID_USER,PICTURE) VALUES (" & ID_SQL & ",'" & Cursor1.GetString("TIP") & "'," & Main.CURRENT_USER.GetUserID & "," & Cursor1.GetBlob("PICTURE") & ")"
If I remove from query the BLOB field, everything works without error.
What should I do?