Displaying image file from Android filesystem

Hi I had similar a problem with cordova and getting the image from the album… The image was represent with blob: prefix similar like your case with file: or cvfile, when I was puting the blob data with angular {{img}} notation I also get the broken link the reason is that angular is putting unsafe: prefix before link… If this is your case try to put in config of the main module …

var app = angular.module( ‘myApp’, )
.config( [
‘$compileProvider’,
function( $compileProvider )
{
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|file|blob|cdvfile):|data:image//);
}
]);

I hope this helps you it was to me…

4 Likes