public InputStream getInputStream() throws IOException {
        return Files.newInputStream(path);
    }
Gets a new input stream.

@return a new input stream.
@throws IOException if an I/O error occurs
httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/PathBody.java