java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (unrecognized token: "[B@e26fb32")
and if I use a prepared statement as follows:
String selectSQL = "SELECT * FROM Bytes WHERE bytes=?";
PreparedStatement pstmtSelectQuery = db_con.prepareStatement(selectSQL);
pstmtSelectQuery.setBytes(1, bytes);
rs = pstmtSelectQuery.executeQuery(selectSQL);
while (rs.next())
{
byte[] byteArray = rs.getBytes("bytes");
System.out.println("byteArray read from db: " + ToStringBuffer.list(byteArray, "[", ", ","}"));
}
I get the exception:
java.sql.SQLException: not supported by PreparedStatment
Is there a solution to this query?
Graham