android EOF exception ksoap

时间:2015-07-31 19:31:18

标签: java android android-ksoap2

This is code for getting images from the server .when i implement this i am getting error when call another ksoap web service .I am getting an Eof exception. when i remove the below code the ksoap web service is working.Is anything wrong with the below code?

URL url = new URL(s);
URLConnection con = url.openConnection();
con.setRequestProperty("connection","close");
InputStream is = con.getInputStream();
imageResources[id] = BitmapFactory.decodeStream(is);
is.close();

0 个答案:

没有答案