cannot save image as blob to sqlite

I am using SQLite and I cannot save a image to the database. This is my code : File file = new File(url); try { fis = new FileInputStream(file); } catch (FileNotFoundException e) {} fileLenght = (int) file.length(); stat.executeUpdate("create table "+tableName+" (id int,name String ,image Blob, features String);"); prep = conn.prepareStatement("insert into "+tableName+" values (?, ?, ?, ?);"); prep.setBinaryStream(3, fis, fileLenght); This is the error i am getting: java.sql.SQLException: not implemented by SQLite JDBC driver at org.sqlite.Unused.unused( at org.sqlite.Unused.setBinaryStream( I am using the following jar : sqlitejdbc-v056.jar. Any ideas? Thanks

以上就是cannot save image as blob to sqlite的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准