注意IOException是checked exception.
f.getAbsolutePath()不会抛出IoException, 所以编译的时候不过.
换成catch(Exception e)就可以了.getAbsolutePath()是绝对路径