CloseableHttpClient、CloseableHttpResponse获取远程图片/视频,
InputStream is = response.getEntity().getContent();
http响应结果包装类 中用String类型来保存response:
response = IOUtils.toString(is, "UTF-8");
当响应为 文本类型时,工作正常;
当响应为 图片/视频 类型时,异常
---------------------------
http结果包装类 中用byte[]类型来保存response:
response = IOUtils.toByteArray(is);