Using the Camera.js file, you can take a picture from the camera, or pick one from the photolibrary and use the picture in the mobile workflow.
getPicture Function
The getPicture function provides access to the device's default camera application or device's photo library for retrieving a picture asynchronously.