- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've used this code to use my phone's camera
// event listener for camera document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { pictureSource=navigator.camera.PictureSourceType; destinationType=navigator.camera.DestinationType; }
and that works OK.
I invoke the camera using
navigator.camera.getPicture(onGetPicSuccess, onGetPicFail, { quality: 50, destinationType: destinationType.FILE_URI, sourceType: pictureSource.PHOTOLIBRARY });
then the function called after successful picture "get"
function onGetPicSuccess(imageData){
Now, my question.
The variable "imageData" looks like this:
blob:http%3A//localhost%3A57492/ac65226c-5698-4345-b301-81205b1403fa
I'm assuming that is not the actual image data. It's a URL that points to the image on the camera.
Is that correct?
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a question that would be better asked on Stack Overflow.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page