Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Uploading image to server using httpclient

$
0
0

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.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>