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

@param name The part name.
@param path The source path.
@return {@code this} instance.
@since 5.6
httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/MultipartEntityBuilder.java