title: How to create new file in java from blob with faster speed
body: <p>I have byte array of file in database. I am creating java file from it. But it is consuming more time. Is there any way to create file faster than it. My attempts are as follows >>></p>
  
  <pre><code>    Blob blob = null
  while (rs.next()) {
                  results.add([
                      blob = rs.getBlob("document")
                  ])
  
  File outputFile = new File("D:" + File.separator + it.documentDesc + extension);
  FileOutputStream fout = new FileOutputStream(outputFile);
  IOUtils.copy(blob.getBinaryStream(), fout);
  File file = new File("D:" + File.separator + it.documentDesc + extension)
  </code></pre>