        </p>
<a name="performance"></a>
<h3 class="underlined_5">Improving performance</h3>
<p>
          There are several options to consider:
        </p>
<ul>
          
<li>
            Instead of java.io.ByteArrayOutputStream consider using the ByteArrayOutputStream
            implementation from the <a class="external" href="http://commons.apache.org/io/">Jakarta Commons IO project</a> which allocates less memory.
            The full class name is: <span class="codefrag">org.apache.commons.io.outpu