files[0].transferTo(new File("F:/"+fileName+".png"))
//本地文件下载
File file = new File("F:/hello.jpg");
Utils.download("hello.jpg",new FileInputStream(file))
//远程文件下载
URL url = new URL("https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png");
Utils.download("hello.jpg",url.openConnection().getInputStream())
//本地图片预览
File file = new File("F:/hello.jpg");
Utils.preview(new FileInputStream(file))
//远程图片预览
URL url = new URL("https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png");
Utils.preview(url.openConnection().getInputStream())