nbsp; System.out.println(filename);
if (null!=name)
{
if(buffer.size()>2)
{
FileOutputStream outStream = new FileOutputStream(strDir+filename);
outStream.write(buffer.toByteArray(), 0, buffer.toByteArray().length);
outStream.close();
}
name=null;
value=null;
filename=null;
contentType=null;
buffer=new ByteArrayOutputStream();
}
}//end of st.startsWith(boundary)
else if (st.startsWith("Content-Disposition: form-data") && state==0)
{
StringTokenizer tokenizer=new StringTokenizer(st,";=\"");
while(tokenizer.hasMoreTokens())
{
String token=tokenizer.nextToken();
if(token.trim().startsWith("name"))
{
name=tokenizer.nextToken();
state=2;
&