puoi provare con un PreparedStatement e setAsciiStream