Set these properties, make sure you are not using the thin driver
because it won't work... Your Persistent object should be using a byte
[] to store the file data. Then you can simply call session.save
(object) and it should work...
<property name="connection.url">jdbc:oracle:oci:@
[ORACLESID]</property>
<property
name="hibernate.jdbc.batch_size">0</property>
<property
name="hibernate.jdbc.use_streams_for_binary">true</property> |