Introduction:
While working on a PhoneGap application , there was an requirement to take photo using device camera and upload in the sever. And PhoneGap provides an easy way to interact with the device camera and take photo using Camera API.
Description: Basically there are two ways to take photo from mobile device.
1. Taking photos using Camera
2. Taking photos from Library/Gallery
So here we will focus on displaying the image in our application using both ways. PhoneGap provides the camera.getPicture method which can help us to invoke camera and take images from mobile devices.