title: How to copy image in java using bufferedreader/writer
body: <pre><code>    File file = new File("download.png");
      File newfile = new File("D:\\Java.png");
      BufferedReader br=null;
      BufferedWriter bw=null;
      try {
          FileReader fr = new FileReader(file);
          FileWriter fw = new FileWriter(newfile);
          br = new BufferedReader(fr);
          bw = new BufferedWriter(fw);
          char[] buf = new char[1024];
          int bytesRead;
          while ((bytesRead = br.read(buf)) &gt; 0) {
              bw.write(buf, 0, bytesRead);
          }
          bw.flush();
          }
          catch (Exception e) {
          e.printStackTrace();
      } finally {
          try {
              br.close();
          bw.close();
          } catch (IOException e) {
              e.printStackTrace();
          }
          }
  </code></pre>
  
  <p>Whats wrong with this code. Is it possible with BufferedReader and Writer Class??
  I know how to to make copy of image using InputStream and OutputStream, So don't paste solution using that!!</p>