I am downloading a file having 110 MB size from server. it is well download but after download complete app crashes. Onload function never called. My code for Download is //Define the http client var myHttpClient = Ti.Network.createHTTPClient(); myHttpClient.setTimeout(10000);
//On success of downloading myHttpClient.onload = function() { Ti.API.error("It Never comes Here");
};
//Process when dowloading is going on
myHttpClient.ondatastream = function(e) {
ind.value = e.progress;
//Change the progress bar value with downloading progression
Ti.API.error(e.progress);
};
myHttpClient.onerror = function(e) {
//Change the progress bar value with downloading progression
Ti.API.error("error in Downloading");
};
//Open the url to download
myHttpClient.open("GET", myurl);
//Send request
myHttpClient.send(null);
};
I don't understand where is the problem working fine for 42 MB file.