<commit_before>camera.getPicture
-----------------

Takes a photo and returns the image as a `String` of base64 encoded data.

### Syntax ###

    navigator.camera.getPicture(successCallback, errorCallback, [options]);

* __successCallback:__ Invoked when the photo is taken. _(Function)_
    * __Syntax:__
        * `function(imageData) {}`
    * __Parameter:__
        * __imageData:__ Stores the base64 encoded data. _(String)_
* __errorCallback:__ Invoked when an error occurs. _(Function)_
    * __Syntax:__
        * `function(errorMessage) {}`
    * __Parameter:__
        * __errorMessage:__ Different error message on each platform. _(String)_
* __options:__ Customization. _(Object)_ (Optional)
    * __Syntax:__
        * `var cameraOptions = { quality: 75 };`
    * __Values:__
        * __quality:__ Quality of saved image. Range is 0 - 100. _(Number)_

### Details ###

`camera.getPicture` opens the device's default camera application and allows the user to take a photo. Once the photo is captured, the camera application closes and your application is restored. The image is base64 encoded and returned as a JavaScript `String` in the `successCallback` function. Since the data is a `String`, you can do whatever you want with it, for example:

* Render the image in an `<img>` tag _(See the example)_
* Save the data locally (`LocalStorage`, `Lawnchair`, etc)
* Post the data to a remote server

### Supported Platforms ###

- Android
- BlackBerry
- iPhone
- webOS

### Warning ###

The `options` parameter is ignored on:
<commit_msg>camera.getPicture - changed bullet markup to use - instead of * for consistency.<commit_after>camera.getPicture
-----------------

Takes a photo and returns the image as a `String` of base64 encoded data.

### Syntax ###

    navigator.camera.getPicture(successCallback, errorCallback, [options]);

* __successCallback:__ Invoked when the photo is taken. _(Function)_
    * __Syntax:__
        * `function(imageData) {}`
    * __Parameter:__
        * __imageData:__ Stores the base64 encoded data. _(String)_
* __errorCallback:__ Invoked when an error occurs. _(Function)_
    * __Syntax:__
        * `function(errorMessage) {}`
    * __Parameter:__
        * __errorMessage:__ Different error message on each platform. _(String)_
* __options:__ Customization. _(Object)_ (Optional)
    * __Syntax:__
        * `var cameraOptions = { quality: 75 };`
    * __Values:__
        * __quality:__ Quality of saved image. Range is 0 - 100. _(Number)_

### Details ###

`camera.getPicture` opens the device's default camera application and allows the user to take a photo. Once the photo is captured, the camera application closes and your application is restored. The image is base64 encoded and returned as a JavaScript `String` in the `successCallback` function. Since the data is a `String`, you can do whatever you want with it, for example:

- Render the image in an `<img>` tag _(See the example)_
- Save the data locally (`LocalStorage`, `Lawnchair`, etc)
- Post the data to a remote server

### Supported Platforms ###

- Android
- BlackBerry
- iPhone
- webOS

### Warning ###

The `options` parameter is ignored on:

{'fraction_non_alphanumeric': 0.10627562283191422, 'fraction_numerical': 0.007568590350047304, 'mean_word_length': 3.61046511627907, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2554086', 'n_tokens_mistral': 892, 'n_tokens_neox': 859, 'n_words': 355}