我的评论

@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");
}
}
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

统计

常用链接

留言簿(2)

随笔档案

文章档案

相册

搜索

最新评论

阅读排行榜

评论排行榜