title: javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request
body: <p>I'm trying, as a <strong>client</strong>, to post a zip file to a "Restservice", using <strong>RestEasy 3.0.19</strong>.
  This is the code:</p>
  
  <pre><code>public void postFileMethod(String URL)  {       
           Response response = null;              
           ResteasyClient client = new ResteasyClientBuilder().build();
           ResteasyWebTarget target = client.target(URL); 
  
           MultipartEntityBuilder entityBuilder = MultipartEntityBuilder.create();
  
           FileBody fileBody = new FileBody(new File("C:/sample/sample.zip"), 
  ContentType.MULTIPART_FORM_DATA);              
  
           entityBuilder.addPart("my_file", fileBody);            
           response = target.request().post(Entity.entity(entityBuilder, 
  MediaType.MULTIPART_FORM_DATA));            
  }   
  </code></pre>
  
  <p>The error I get is this one:</p>
  
  <pre><code>javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request
  ....
  Caused by: javax.ws.rs.ProcessingException: RESTEASY003215: could not 
  find writer for content-type multipart/form-data type: 
  org.apache.http.entity.mime.MultipartEntityBuilder
  </code></pre>
  
  <p>How can I solve this problem? I looked into some posts, but the code is slightly different from mine.</p>
  
  <p>Thank you guys.</p>