I noticed that unsupported characters (e.g. white spaces) in the URL of AIR
uploads/downloads operations seems accepted on Windows but cause failures
on OSX exactly with that error, if not properly escaped - maybe could be
related to your issue?


2014-06-26 19:54 GMT+02:00 davsantos <[email protected]>:

> 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.
>

Reply via email to