flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davsantos <alves...@gmail.com>
Subject Flex File I/O Error #2038 - file.upload fails on Mobile IOS
Date Thu, 26 Jun 2014 17:54:41 GMT
I need to upload an xml file to the server with a IOS application developed
in Flex. I am getting a
Flex File I/O Error #2038. It is a very generic i/o error and doesn't
provide any further details that would help me track down the root problem.
Everything goes well on Windows when debugging the App it only happens when
I debug the App on the apple Air tablet.

I ran into this post
https://www.catalysts.cc/en/wissenswertes/flex-file-io-error-2038-on-mac-clients/
which looks like something similar but to be honest I wasn't able to use
this information. It seems that my tablet may be corrupting the URL. I
haven't made any traffic monitoring but I can swear the call is not even
made. 

Here is the code:

     var f:File = new File('app-storage:/Output_WithAllInfo.xml');
     var request:URLRequest = new URLRequest();
     request.url =
http://myHost/JsonServer/?country=DE&language=deu&operationtype=custom&select=[{\"item\":\"*\"}]&sessionid="+sessionId+"&custom=[{\"package\":\"eu.app\",\"name\":\"syncInUpload\",\"data\":{\"nxpkeyProcessId\":"+processId+",\"nxpkeyProcessDefinitionId\":null,\"xml\":null}}]";
	 request.method = URLRequestMethod.POST;
	 f.upload(request,"xml", false);

The request parameters are:

    authenticate:true
    cacheResponse:true
     contentType:null
    data:null
    digest:null
    followRedirects:true
    idleTimeout:0
    manageCookies:true
    method:"POST"
    requestHeaders:[] length:0
   
url:http://domain/JsonServer/?country=DE&language=deu&operationtype=custom&select=[{"item":"*"}]&sessionid=b9f33c5e-0445-49d3-ab5c-a335229596cf&custom=[{"package":"eu.app","name":"syncInUpload","data":{"nxpkeyProcessId":606,"nxpkeyProcessDefinitionId":null,"xml":null}}]
    useCache:true
    userAgent:"Mozilla/5.0 (iOS; U; de) AppleWebKit/533.19.4 (KHTML, like
Gecko) AdobeAIR/3.7"


And I get the error:

     Error #2038: File I/O Error. URL:
http://domain/JsonServer/?country=DE&language=deu&operationtype=custom&select=[{"item":"*"}]&sessionid=b9f33c5e-0445-49d3-ab5c-a335229596cf&custom=[{"package":"eu.app","name":"syncInUpload","data":{"nxpkeyProcessId":606,"nxpkeyProcessDefinitionId":null,"xml":null}}]


I really need help here...
Thanks



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-File-I-O-Error-2038-file-upload-fails-on-Mobile-IOS-tp7034.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message