| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Commons FileUpload example source code file (streaming.xml)

This example Commons FileUpload source code file (streaming.xml) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Commons FileUpload tags/keywords

apache, api, api, asf, asf, cdata, license, license, see, servletfileupload, the, the, this, you

The Commons FileUpload streaming.xml source code

<?xml version="1.0"?>
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 See the License for the specific language governing permissions and
 limitations under the License.


    <title>The Streaming API


  <section name="Why Streaming?">
      The traditional API, which is described in the <a href="using.html">User
      Guide</a>, assumes, that file items must be stored somewhere, before
      they are actually accessable by the user. This approach is convenient,
      because it allows easy access to an items contents. On the other hand,
      it is memory and time consuming.
      The streaming API allows you to trade a little bit of convenience for
      optimal performance and and a low memory profile. Additionally, the
      API is more lightweight, thus easier to understand.

  <section name="How it works">
      Again, the <code>FileUpload class is used for accessing the
      form fields and fields in the order, in which they have been sent
      by the client. However, the <code>FileItemFactory is completely

  <section name="Parsing the request">
      First of all, do not forget to ensure, that a request actually is a
      a file upload request. This is typically done using the same static
      method, which you already know from the traditional API.
      Now we are ready to parse the request into its constituent items. Here's
      how we do it:
      That's all that's needed. Really!

Other Commons FileUpload examples (source code examples)

Here is a short list of links related to this Commons FileUpload streaming.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.