Skip to main content
Participant
February 17, 2014
Question

Adobe AIR 4 Not reading a XML file larger than 10MB

  • February 17, 2014
  • 0 replies
  • 272 views

I have an application where the XML file could be over 10MB in size. I am using XMLHttpRequest to read the file in. However, on Air 4, it results in null when the file is greater than 10MB in size. This was working until I updated to AIR 4. I can go back to a previous version of AIR and the loading of large file works.

xml = new XMLHttpRequest( );
xml
.onreadystatechange = function( ){
   
if( xml.readyState == 4 && xml.status == 200){
  b
[language] = xml.responseXML.documentElement; //Results in NULL when file size is greater than 10MB
       
var tempTxt = "Loaded Database";
   
}
};

xml
.open( "GET", file.url, false);
xml
.send( null );

Why AIR limited the file size and any work around for this? The Request processes fine and readyState will become 4. However, xml.responseXML.documentElement will respond with a NULL.

Thank you

Binu

www.verseview.info

This topic has been closed for replies.