- Application type : Mobile
- Titanium SDK: 2.1.3 (10/02/12 16:16 15997d0)
- Platform & version: iOS 4.3 & above, Android 2.3 & above
- Device : Android emulator & physical device
- Host Operating System: OS X 10.8.2
- Titanium Studio : 3.0.2
Hi All I am using image factory for compressing or Resizing image before upload it to server.. It is working fine for iOS.. But not for Android..If image size is small its working..But for above 3 MB images its not working..it returns the Black image..I Assume this is happening because of image pixels are collapsed
var image_reszied = ImageFactory.imageAsResized(event.media, { width : 580, height : 580, }); var img_view = Ti.UI.createView({ width : 580, height : 580, }); var img = Ti.UI.createImageView({ image : image_reszied, }); img_view.add(img); var image = img_view.toImage().media; var imd_data = {qqfile : image,pid : projectid}; var xhr = Titanium.Network.createHTTPClient(); xhr.open('POST', global_remote_url + 'mobile.php?cmd=imageuplosding"); xhr.send(imd_data);Please Provide a best solution.. Thanks in advance