@Override
    public void apply(int position, PreparedStatement statement, StatementContext ctx) throws SQLException {
        if (ascii) {
            if (value == null) {
                statement.setNull(position, Types.LONGVARCHAR);
            } else {
                statement.setAsciiStream(position, value, length);
            }
        } else {
            if (value == null) {
                statement.setNull(position, Types.LONGVARBINARY);
            } else {
                statement.setBinaryStream(position, value, length);
            }
        }
    }
@param stream the stream to bind
@param length the length of the stream
@param ascii true if the stream is ASCII
core/src/main/java/org/jdbi/v3/core/argument/InputStreamArgument.java