rest-assured/src/main/java/io/restassured/builder/RequestSpecBuilder.java
public RequestSpecBuilder addMultiPart(String controlName, String fileName, InputStream stream) {
        spec.multiPart(controlName, fileName, stream);
        return this;
    }
public RequestSpecBuilder addMultiPart(String controlName, String fileName, InputStream stream) {
        spec.multiPart(controlName, fileName, stream);
        return this;
    }
public RequestSpecBuilder addMultiPart ( String controlName , String fileName , InputStream stream ) { spec . multiPart ( controlName , fileName , stream ) ; return this ; }
Specify an inputstream to upload to the server using multi-part form data.
It will use the content-type <tt>application/octet-stream</tt>. If this is not what you want please use an overloaded method.

@param controlName Defines the control name of the body part. In HTML this is the attribute name of the input tag.
@param fileName    The name of the content you're uploading
@param stream      The stream you want to send
@return The request specification
Specify an inputstream to upload to the server using multi - part form data . It will use the content - type <tt > application / octet - stream< / tt > . If this is not what you want please use an overloaded method .