title: Restlet & MULTIPART_FORM_DATA or another way to put files on Google App Engine via Restlet
body: <p>I tried to receive files via restlet but only gets the complete MULTIPART_FORM_DATA.
  How can I extract my specific file?</p>
  
  <p>I found some code-blocks but the types of them are not available...
  <a href="https://stackoverflow.com/questions/996819/restlet-how-to-process-multipart-form-data-requests">RESTlet: How to process multipart/form-data requests?</a></p>
  
  <pre><code>DiskFileItemFactory factory = new DiskFileItemFactory();
  factory.setSizeThreshold(1000240);
  
  // 2/ Create a new file upload handler
  RestletFileUpload upload = new RestletFileUpload(factory);
  </code></pre>
  
  <p><strong>My current code:</strong></p>
  
  <pre><code>@Put
  public void handleUpload(Representation entity) {
      if (entity !=null) {
          if (MediaType.MULTIPART_FORM_DATA.equals(entity.getMediaType(), true)) {
              Request restletRequest = getRequest();
              Response restletResponse = getResponse();
              HttpServletRequest servletRequest = ServletUtils.getRequest(restletRequest);
              HttpServletResponse servletResponse = ServletUtils.getResponse(restletResponse);
  
              try {
                  Upload2(restletRequest, entity);
              } catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
  
  public void Upload2(Request req, Representation entity) throws IOException
  {
      ...
          GcsOutputChannel outputChannel = gcsService.createOrReplace(fileName, GcsFileOptions.getDefaultInstance());
          ObjectOutputStream oout = new ObjectOutputStream(Channels.newOutputStream(outputChannel)); 
          copy(entity.getStream(), oout);
          oout.close(); 
  </code></pre>
  
  <p>After storing with this method I have something like that and I only want to store the content with the name "picture":</p>
  
  <pre><code>��z------WebKitFormBoundarysOvzWKPqyqW7DiTu
  Content-Disposition: form-data; name="picture"; filename="_MG_4369.jpg"
  Content-Type: image/jpeg
  
  ����*ExifII*
  </code></pre>
  
  <p>As far as I read parsing of multipart form data isn’t supported yet? But there must be a solution to send files via restlet</p>
  
  <p>I tried the rest-calls via postman for chrome. The is only on multiparts the support for files. Is a possible solution to send the image as a raw-text?</p>