title: File upload along with other object in Jersey restful web service
body: <p>I want to create an employee information in the system by uploading an image along with employee data. I am able to do it with different rest calls using jersey. But I want to achieve in one rest call.
  I provide below the structure. Please help me how to do in this regard.</p>
  
  <pre><code>@POST
  @Path("/upload2")
  @Consumes({MediaType.MULTIPART_FORM_DATA,MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
  public Response uploadFileWithData(
          @FormDataParam("file") InputStream fileInputStream,
          @FormDataParam("file") FormDataContentDisposition contentDispositionHeader,
          Employee emp) {
  
  //..... business login
  
  }
  </code></pre>
  
  <p>Whenever I am trying to do, I get error in Chrome postman. The simple structure of my Employee json is given below.</p>
  
  <pre><code>{
      "Name": "John",
      "Age": 23,
      "Email": "john@gmail.com",
      "Adrs": {
          "DoorNo": "12-A",
          "Street": "Street-11",
          "City": "Bangalore",
          "Country": "Karnataka"
      }
  }
  </code></pre>
  
  <p>However I can do it by making two different call, but I want to achieve in one rest call so that I can receive the file as well as the actual data of the employee.</p>
  
  <p>Request you to help in this regard.</p>