Closed l-lawliett closed 7 years ago
Option One - Camera API Yeah i took the code add it in a new ionic then when i click the button happen
it as work now man i was using the wrong name for the method invoke haha
Well it allow me to select the image but the {{img}} not displaying am still looking in to it
Ok, but to be clear, I still don't know what demo your talking about. It would be helpful to include the URL of the blog entry and the particular subdirectory containing the code.
Ok, that's a pretty old blog entry - so it may not work terribly well. Also, the blog entry you shared does NOT use the source code in the example you linked to. Are you getting them confused?
thats the blog
i was reading a good amount of your posts
Ah, ok, well I'd still suggest remote debugging to see if it helps with the problem.
yeah okay I will let you know when reading your blog gave me an idea with good blogs like yours why not set it like github where some one can update the tutorial an you could merge it if it works an new so its like a tutorial github that would be past great an open one for dev in all language an frameworks and programming tools for as we can see good work can become ancient but still relevant
Well, my tutorials are the writing parts and for that - I don't want to use GitHub. I want the source code here so folks can easily run with it if they want to build it themselves. But now we're a bit off topic. ;)
yeah sorry
var options = {
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 200,
targetHeight: 200
};
$cordovaCamera.getPicture(options).then(function(imageData) {
var image = document.getElementById('myImage');
image.src = imageData;
}, function(err) {
// error
});
};
Well thats the proper way to do it now also the only thing missing is encodingType: Camera.EncodingType.JPEG, from the blog well we can say this is one way okay so for future users this can be use
Ok, thanks!
What demo are you talking about? DId you remote debug?