Insert BLOB from a file into a sql script to embed H2 database
问题 I'm creating a SQL script to create a new schema and insert some values to an embed H2 database for use with integration tests in a Spring Boot application. One of the values I need to insert is a BLOB field on the sql table. I've succesfully used the FILE_READ function as described here. INSERT INTO MY_TABLE(ID, NAME, LOGO) VALUES('1', 'test1', FILE_READ('C:/myproject/logo.png')); That function works well with full paths but I'm not been able to do that with relative paths. That doesn't work