url=“http://smartcloset1.qiniudn.com/Item_Useradd_29B9C16C-543C-4DAC-8420-2F355DEADD3B?imageInfo&e=1416057339&token=J-crNw5p5Xy0pafT0HBOZwvz0FyFwyTQ6SwhcsPc:Ti3pmfHQkETlrDN9dV6cXj-ZblY=”;
url输入浏览器能出现上面的结果。但是ret.height和ret.width总是0,为什么呢?
ImageInfoRet ret = ImageInfo.call(url);
int height=0,width=0;
if(ret.ok()){
height=ret.height;
width=ret.width;
}
完全可以返回。