Hi everyone,
I am using HTTPService POST method to send around 40K of data to
JSP , but the JSP is receiving only 8K of data on the server side. Any
ideas what I might be missing. Any ideas is much appreciated.
Thanks,
Here's the code snippet of MXML and also ActionScript.
<mx:HTTPService id="deployCSAppXML" url="deploy.jsp" method="POST"
contentType="application/xml"
result="ProcResult(event)" showBusyCursor="true"
useProxy="false" /
I also tried Action Script:
var request:URLRequest = new URLRequest("deploy.jsp");
request.data = dataXML.toXMLString();
request.contentType = "text/xml";
request.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, ProcResult);
loader.load(request);
Here's the JSP code on the Server Side:
PrintWriter outcsXML = new PrintWriter(new FileOutputStream(new File(
"c:\\temp\\example.xml")));
BufferedReader br = request.getReader();
String line = null;
while ((line = br.readLine()) != null) {
outcsXML.print(line);
}
br.close();
outcsXML.flush();
outcsXML.close();