Need to pull Jpg or Png files from a URL in Java -


i have been tasked write quickie reusable program in java pull 1000 jpg or png files url. not expert on java , frankly don't have time needed research. not asking write me point me @ best method java 7 or 8. looked @ past questions , found many different methods , several years old thought see if better way may available now.

it should simple as

try  {     image image = imageio.read(new url("www.example.com/image.png")); }  catch (exception e)  {     // handle exception } 

Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

c# - Get the Class name in a class with atribute inside a attribute method -