public MultipartEntityBuilder addBinaryBody(
            final String name, final File file) {
        return addBinaryBody(name, file, ContentType.DEFAULT_BINARY, file != null ? file.getName() : null);
    }
Adds body with contents from the given source Path.

@param name        The part name.
@param path        The source path.
@param contentType The content type.
@param fileName    The file name to override the Path's file name.
@return {@code this} instance.
@since 5.6
httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/MultipartEntityBuilder.java