File aImage=new File("图片路径");
int i=aImage.length();
应该可以吧