How to display the image from capture


#1

I am using cordova capture plugin. I get the image using the code:

$cordovaCapture.captureImage(options).then(function(imageData) {
				for (i = 0, len = imageData.length; i < len; i += 1) {
					path = imageData[i].fullPath;
					console.log("Image path is " + path);
				}

I want to use image and display it on my page, but inside the image src tag I can’t use ‘path’ variable because it does not work. The path returns something like this:

file:/storage/emulated/0/DCIM/Camera/1436661898317.jpg

This is the path that doesn’t work. How can I display the picture.