title: Download file from Dropbox and save it into SDCARD
body: <p>Am really frustated now..I want to download a file from Dropbox and save that file into SDCARD..and I got the code as:</p>
  
  <pre><code>     private boolean downloadDropboxFile(String dbPath, File localFile) throws IOException{
  
  BufferedInputStream br = null;
  BufferedOutputStream bw = null;
  
  try {
      if (!localFile.exists()) {
          localFile.createNewFile(); //otherwise dropbox client will fail silently
      }
  
      FileDownload fd = api.getFileStream("dropbox", dbPath, null);
      **br = new BufferedInputStream(fd.is);**
      bw = new BufferedOutputStream(new FileOutputStream(localFile));
  
      byte[] buffer = new byte[4096];
      int read;
      while (true) {
      read = br.read(buffer);
      if (read &lt;= 0) {
      break;
      }
      bw.write(buffer, 0, read);
      }
  } finally {
      //in finally block:
      if (bw != null) {
          bw.close();
      }
      if (br != null) {
          br.close();
      }
  }
  
  return true;
  </code></pre>
  
  <p>}</p>
  
  <p>Here I am getting an error on br=new BufferedInputStream line..Pls help</p>