title: FileOutputStream is really slow
body: <p>I am downloading databases from the network, which are between 100 Kbytes and 500 Kbytes large. Here is my code (removed useless code):</p>
  
  <pre><code>URLConnection uConnection = downloadUrl.openConnection();
  InputStream iS = uConnection.getInputStream();
  BufferedInputStream bIS = new BufferedInputStream(iS);
  byte[] buffer = new byte[1024];
  FileOutputStream fOS = new FileOutputStream(db);
  int bufferLength = 0;
  while ((bufferLength = bIS.read(buffer)) &gt; 0) {
  fOS.write(buffer, 0, bufferLength);
  }
  fOS.close();
  </code></pre>
  
  <p>My problem is, that it takes a long time for him to finish the while-statement. Have I messed up the code somewhere? It shouldn't take that long for such small files, shouldn't it? I'm talking about 1 minute, for three files not larger than 1 MB altogether... Thanks in advance!                  </p>