PDA

View Full Version : Image uploading in iphone by using sencha



murugapradeep
14 Jul 2011, 8:16 PM
Hey,

Is there any way to upload a image by using iphone gallery or taking a picture by using iphone camera and upload it to server . any ideas? please guide me.



Thanks in advance

bwg
14 Jul 2011, 10:16 PM
Mobile Safari has limited access to device features, for example, Geolocation. If you create a native app instead of a web app, you can use PhoneGap (http://www.phonegap.com/)as a wrapper to get access to most of the device features including camera and photo gallery.

murugapradeep
14 Jul 2011, 10:20 PM
Thanks for your reply .can you give me some examples regarding this.

AndreaCammarata
14 Jul 2011, 11:28 PM
Thanks for your reply .can you give me some examples regarding this.

I suggest you to take a look at PhoneGap API documentation.
They provide some full examples on how to do what you request.

http://docs.phonegap.com/phonegap_camera_camera.md.html

Hope this helps.

murugapradeep
16 Jul 2011, 1:19 AM
Hi, Now i am using phonegap to upload image . i can able to access the photogallery of iphone. but what is the problem i faced is after i got the image from gallery.my app was moved upwards and getting white space at the bottom.please see the image below

27020


how can i solve it?

AndreaCammarata
16 Jul 2011, 1:23 AM
Hi, Now i am using phonegap to upload image . i can able to access the photogallery of iphone. but what is the problem i faced is after i got the image from gallery.my app was moved upwards and getting white space at the bottom.please see the image below

27020

how can i solve it?

You can solve this issue adding a new CSS rule to you SASS or CSS application file



body {
position: fixed;
}


Hope this helps.

murugapradeep
16 Jul 2011, 1:28 AM
Thanks for your quick reply, now it is solved.

AndreaCammarata
16 Jul 2011, 1:29 AM
Thanks for your quick reply, now it is solved.

You are welcome.