I write a code in java code to save images from specified links. It works fine mostly, but some time it throws an exception ie "javax.imageio.IIOException: Can't get input stream from URL! at javax.imageio.ImageIO.read(ImageIO.java:1369)"
Whenever this exception throws I check the url in browser, it will correct always.
Please suggest me some solution to solve this problem.
Thanks!