I am using postman to make a call to an api that is accepting 4 form parameter as input and one of the parameter is of type file. I am successfully able to make a call using postman. When I am trying the same call from code using JAX-RS 2.0 Client API, I am not able to figure out how to send this. Please help with this. I have to use JAX-RS only as per the framework.
WebTarget target = client.target(BASE_URL);
Invocation.Builder invocationBuilder = target.request();
File file = new File("/Users/akash/file.jks");
//InputStream inputFileStream = new FileInputStream(file);
Form formInput = new Form();
formInput.param("alias", "client alias");
formInput.param("keypasswd", "***");
formInput.param("storepasswd", "***");
//formInput.param("jkskeystore",inputFileStream );