title: save an uploaded file with GWT
body: <p>I am using <code>org.apache.commons.fileupload</code> to upload.</p>
  
  <pre><code>public void doPost(HttpServletRequest request, HttpServletResponse response)  throws ServletException, IOException {
  
       boolean isMultipart = ServletFileUpload.isMultipartContent(request);
       GWT.log("is multipart? " + Boolean.toString(isMultipart), null);
  
       ServletFileUpload upload = new ServletFileUpload();
  
       try{
              FileItemIterator iter = upload.getItemIterator(request);
  
              while (iter.hasNext()) {
                      FileItemStream item = iter.next();
                      String name = item.getFieldName();
                      InputStream stream = item.openStream() ;
  
                      /**
                      * Save th uploaded file
                      */
  
              }
       }
      catch(Exception e){
              e.printStackTrace();
      }
   }
  </code></pre>
  
  <p>How can I save the uploaded file?</p>