我的评论

@ILOVEYOU

I encountered the same problem, it's because that the directory "UpdateImages" doesn't exist. Please invoke

FileUtils.copyFile(myFile, imageFile);

to replace the original copy method.

or

Add the below code in copy method to create the parent directory when it does't exist.

if (dst.getParentFile() != null && dst.getParentFile().exists() == false) {
if (dst.getParentFile().mkdirs() == false) {
throw new IOException("Destination '" + dst + "' directory cannot be created");
}
}
<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

导航

统计

常用链接

留言簿(2)

随笔档案

文章档案

相册

搜索

最新评论

阅读排行榜

评论排行榜