HttpGet get = new HttpGet(url); response = httpClient.execute(get); //执行请求获得response HttpEntity entity = response.getEntity(); //获得resonse 实体 byte[] bytes = EntityUtils.toByteArray(entity); //用EntityUtils将reponse转化成byte[]