摘要:
系统中某些图片可能已经被修改了后缀名,所以不能只是对后缀名进行判断。下面的示例代码就是如何判断一个图片的具体类型的。public static void main(String[] args) { File f = new File("c://test.jpg"); if (f.exists()) { System.out.println(getFormatInFile(f)); } } // Returns the format of the image in the file 'f'. // Returns ... 阅读全文
posted @ 2012-07-25 13:16
吴超文
阅读(1288)
评论(0)
推荐(0)

浙公网安备 33010602011771号