Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Shawn_A_
Beginner
41 Views

understanding picture handling

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 (2)
0 Kudos
1 Reply
PaulF_IntelCorp
Employee
41 Views

This is a question that would be better asked on Stack Overflow.

Reply