Also you can look at How to pass LOBs as parameters from Java to a Database Stored Procedure