以下步骤允许我获取保存在TomCat服务器上的图像。但我无法从谷歌的网站访问图片。可能是什么原因 ?从互联网上获取图像
URL aURL = new URL(url);
URLConnection con = aURL.openConnection();
con.connect();
InputStream is = con.getInputStream();
/* Buffered is always good for a performance plus. */
BufferedInputStream bis = new BufferedInputStream(is);
/* Decode url-data to a bitmap. */
bm = BitmapFactory.decodeStream(bis);
bitmapDrawable = new BitmapDrawable(bm);
我的URL:http://172.29.26.34:8080/MyService/hb.gif
谷歌图片: