From the Spring JDBC documentation, I know how to insert a blob using JdbcTemplate
final File blobIn = new File(\"spring2004.jpg\");
final InputStream blobIs
I got the same issue to update blob data -- need to update image into database. than i find some solution as below. for more details update image into database
LobHandler lobHandler = new DefaultLobHandler();
statusRes = jdbcTemplate.update("update USERS set FILE_CONTENT = ?, FILE_NAME = ? WHERE lower(USER_ID) = ?",
new Object[] {new SqlLobValue(image, lobHandler),fileName,userIdLower},
new int[] {Types.BLOB,Types.VARCHAR,Types.VARCHAR});