改造2.0b2:如何从响应中获取输入流?
我正在使用改造2.0b2。收到响应后,我尝试通过以下方式从响应中获取输入流:
Response<JsonNode> response = call.execute();
InputStream is = response.raw().body().byteStream();
但应用程序不断抛出:
java.lang.IllegalStateException: Cannot read raw response body of a converted body.
at retrofit.OkHttpCall$NoContentResponseBody.source(OkHttpCall.java:184)
at com.squareup.okhttp.ResponseBody.byteStream(ResponseBody.java:43)
at ...
尽管响应已正确返回。我在这里做错了什么?