HI All,
I am using below one
HttpResponse<InputStream> response = Unirest.post("https://ofc.p.mashape.com/directConvert/")
.header("X-Mashape-Key", "Y3MxEWkOX3mshcvQ85SZCoIqucVMp1qRpjbjsn0TYnnY8c1fIR")
.field("file", new File("<file goes here>"))
.field("format", "woff")
.field("output", "tar.gz")
.asBinary();
System.out.println(response.getStatus());
When i am the above one i am facing below issue:
Exception in thread โmainโ java.lang.NoSuchMethodError: org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor: method <init>()V not found
at com.mashape.unirest.http.options.Options.refresh(Options.java:68)
at com.mashape.unirest.http.options.Options.<clinit>(Options.java:36)
at com.mashape.unirest.http.HttpClientHelper.prepareRequest(HttpClientHelper.java:153)
at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:133)
at com.mashape.unirest.request.BaseRequest.asBinary(BaseRequest.java:80)
at com.iwinner.mashap.consumer.api.MashMain.main(MashMain.java:22)
THanks
AnjaiahSpr
Join in the discussion - add comment below: