how to save image taken from camera and show it to listview – crashes with “IllegalStateException”

As per you create database statement

 private static final String SCRIPT_CREATE_DATABASE = "create table "
 + DATABASE_TABLE + " (" + KEY_ROWID
 + " integer primary key autoincrement, " + KEY_TITLE
 + " text not null, ......+KEY_COMMENTS+" text not null,"+KEY_IMAGE+"  imageblob BLOB);";

you are mentioned that

 "+KEY_IMAGE+"  imageblob BLOB

so the column value is “imageblob imageblol BLOB” syntax wise it is not a correct sql statement.
so just remove the “imageblob” from there and try that, it may be solve your problem….

Leave a Comment