Software Archive
Read-only legacy content
17061 Discussions

understanding picture handling

Shawn_A_
Beginner
214 Views

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?

 

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
214 Views

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

0 Kudos
Reply