If anyone's still having the problem: The solution working for me is just overwriting the InformixDriver: @Override public boolean useInputStreamToInsertBlob() { return false; } Hibernate itself uses a property (hibernate.jdbc.use_streams_for_binary) but when it comes to the decision to use a stream or not, hibernate uses sth. like if(driver.useInputStreamToInsertBlob() || Environment.useStreamsForBinary()) ... well.. at least with both, property set to false and the overridden method, it works in my case. |