Code example for PreparedStatement

Methods: setBinaryStream

0
				ps.setBinaryStream(parameterIndex, value, length);
			} else { 
				ps.setBinaryStream(parameterIndex, value, (int)length);
			} 
		} else { 
			ps.setBinaryStream(parameterIndex, value);
		} 
	} 
 
	/* (non-Javadoc) 
	 * @see za.co.sindi.sql.parameter.ValueParameter#setInternally(java.lang.String, java.sql.CallableStatement) 
	 */ 
	@Override 
	protected void setInternally(String parameterName, CallableStatement statement) throws SQLException {
		// TODO Auto-generated method stub 
		if (length > 0) {
			if (length > Integer.MAX_VALUE) {
				statement.setBinaryStream(parameterName, value, length);
			} else { 
				statement.setBinaryStream(parameterName, value, (int)length);
			}