iphone - Download File from Amazon S3 Bucket in Titanium -
iphone - Download File from Amazon S3 Bucket in Titanium -
i know method download file object amazon s3 bucket using appcelerator titanium.
can help me this
thanks in advance
var downloadingfileurl = "url of file need downloaded" //file path downloaded file saved var filesavingpath = titanium.filesystem.getfile(titanium.filesystem.applicationdatadirectory,"file_path"); //define http client var myhttpclient = ti.network.createhttpclient(); //on success of downloading myhttpclient.onload = function(){ //write file desired path filesavingpath.write(httpclient.responsedata); }; //open url download myhttpclient.open("get", downloadingfileurl); //send request myhttpclient.send(null);
iphone ios amazon-s3 titanium titanium-mobile
Comments
Post a Comment