actionscript 3 - Flex File I/O Error #2038 - file.upload fails on Mobile IOS -
i need upload xml file server ios application developed in flex. getting flex file i/o error #2038. generic i/o error , doesn't provide farther details help me track downwards root problem. goes on windows when debugging app happens when debug app on apple air tablet.
i ran post https://www.catalysts.cc/en/wissenswertes/flex-file-io-error-2038-on-mac-clients/ looks similar honest wasn't able utilize information. seems tablet may corrupting url. haven't made traffic monitoring can swear phone call not made.
here 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, gecko) adobeair/3.7"
and 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 need help here... thanks
should seek this:
var req:urlrequest=new urlrequest("url"); req.method=urlrequestmethod.post; var postdata:urlvariables=new urlvariables(); postdata.country= 'de'; postdata.language='deu'; postdata.operationtype= 'custom';select='[{\"item\":\"*\"}]'; sessionid=e.session; custom='[{\"package\":\"eu.app\",\"name\":\"syncinupload\",\"data\":\"nxpkeyprocessid\":606,\"nxpkeyprocessdefinitionid\":null,\"xml\":null}}]; req.data = postdata; var loader:urlloader = new urlloader(); loader.dataformat=urlloaderdataformat.binary; loader.addeventlistener(event.complete, loader_complete); loader.load(req);
try using urlvariables class documentation
actionscript-3 flex file-upload flex3 flex4.5
No comments:
Post a Comment