fileData = fileData.substring(fileData.indexOf("/>")+2);
fileData = fileData.substring(0,Integer.parseInt(fileLength));
xml = xml.substring(0, xml.indexOf(">",xml.indexOf("file fiop="))+1)+xml.substring(xml.indexOf(">",xml.indexOf("file fiop="))+1+Integer.parseInt(fileLength)+"</file>".length());
}
Document doc2 = sax.build(new StringReader(xml));
log.write(("REQUEST:"+xmlOut.outputString(doc2)+"\r\n\r\n").getBytes());
Element response = processXML(xml);
Document doc = new Document(response);
xml = xmlOut.outputString(doc);
if (xml.indexOf("type=\"getfile\"") >= 0)