title: Play temporary file to blob Byte Buffer in Scala
body: <p>I use multipart from data to get file from the front end, I can save the file in a server dirctory:</p>
  
  <pre><code>request.body.file("fileUpload").map { file =&gt;
    file.ref.moveTo(new File("filename"), true)
  }
  </code></pre>
  
  <p>How can instead save this file to the data base as a blob, in other words how can I convert Play API <code>TemporaryFile</code> to <code>java.nio ByteBuffer</code> ?</p>