I got this while trying to execute
File f = new File("file location");
FileInputStream fis = new FileInputStream(f);
PreparedStatement ps = db.prepareStatement("INSERT INTO table (title,file,id) VALUES('title',?,7)");
ps.setBinaryStream(1, fis, (int)f.length());
ps.execute();
ps.close();
title - VARCHAR2
file - BLOB
id - FK to another table
Operations with another tables are working, everything is fine but this one. I tried to change statement, drop and recreate table. Without result