@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");
}
}