I have a Java web service that is querying a SQLite database that contains blob data. I’m returning sql statements so that consumers of the service can just insert/update/delete with out processing the data. My problem is when I get to the blob data, the sqlite-jdbc driver says that the getBlob function is not implemented. So my question is this doable? Is there a better driver or way to accomplish this task?
Thanks!
SQLite supports BLOB datatype. Sqlitejdbc driver does not support the ResultSet#getBlob() method but BLOBs are supported. Just use ResultSet#getBytes() method. Here is the sample code (I did not put proper exception handling in this code to make it simple):