title: Image Resolution is decrease wile downloading Image to local machine using Java code
body: <p>I am trying to download High resolution Image from URL using Java Code.
  but after download to local machine, the resolution of image is decrease.
  I am using below code to download, can anybody suggest me where I am making mistake.</p>
  
  <pre><code>String url = "https://s3.eu-central-1.amazonaws.com/euroc-inspect/processing/E1039585_TOP_3_1.jpg";
  URL liveUrl = new URL(url);
  BufferedImage bimg = ImageIO.read(liveUrl);
  int width          = bimg.getWidth();
  int height         = bimg.getHeight();
  ImageIO.write(bimg, "jpg", new File("E:/img.jpg"));
  System.out.println("Image Saved");
  </code></pre>