求android大神说说为什么我这样获取不到网页验证码图片?
HttpPost httpPost = new HttpPost("cas.gzccc.edu.cn/lyuapServer/captcha.htm");
HttpResponse httpResponse = client.execute(httpPost);
COOKIE = ((AbstractHttpClient) client).getCookieStore().getCookies().get(0).getValue();
byte[] bytes = EntityUtils.toByteArray(httpResponse.getEntity());
Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
return bitmap;
我是做教务系统客户端的。但是网上的那个DEMO的这段代码无法解析得到图片,一直卡在这里