Hi.. i am developing ios app in titanium alloy i am getting image from gallary or from camera and saving in the application directory when in show this image on image view it is working fine when i send this image to server it is not sending saying file not found error
i am reading file like this:
var file; var image; if (arrayImages.length > 0) { for (var z = 0; z < arrayImages.length; z++) {
file = Titanium.Filesystem.getFile(arrayImages[z].image);
if (file.exists()) {
var imageView = Ti.UI.createImageView({
image : arrayImages[z].image,
width : 200,
height : 200
});
image=imageView.toBlob;
}
}
}
this retrun me blob object but when i send to server it says file not found i am sending params["MediaFile"]=image;
when i alert this it shows "[ti blobobject]" i am really worried please help me thanks in advance.