i want use an insert or replace query, here i m giving the code that i have
String sql="insert or replace into Stock_Table values (?,?,?,?,?,?)";
sqlite.execSQL(sql, new String[]{id,name,code,vat,itmquan,pric});
now i want to additionally insert one more field into this table but that field is not string its a byte array format, i want to add an image into this table, i given the data type for this image as BLOB in table, but i cant able to pass byte array format as a parameter into the above sqlite.execsql func, here i m giving the format that i want to insert
byte []byteImage;
String sql="insert or replace into Stock_Table values (?,?,?,?,?,?,?)";
sqlite.execSQL(sql, new String[]{id,name,code,vat,itmquan,pric,byteImage});
how can i make it possible, i cannot able to convert this byte array into string i want to insert image as BLOB format only, please help me to find any solution