I am using FileUtils to save from internet some files like this:
FileUtils.copyURLToFile(
new URL(urlPath),
new File(destinationPath));
But when trying to download a file which has a space in the name it gives me File not found exception. I've tried URLEncoder, but not helping, tried to replace the space with %20, but not helping me either.
Any help would be apreciated. Thx.