Show Large base64 encoded image. Solve Unsafe error on base64 image view. Solve, Unsafe image in angular.
Show Large Base 64 Image in angular. Image in Angular. Angular Image view.
- First Import "DomSanitizer" in component
- import { DomSanitizer } from '@angular/platform-browser';
- Declar the DomSanitizer in constructor
-
public domSanitizer: DomSanitizer,
-
- View in the HTML
-
LargePhoto = Base64 Code
-
this.largePhoto = 'data:image/png;base64,/95ghsfhhjsdg/ashisajgiijjwq' ;
-
#Angular #Image #DomSanitizer #base64_image #angular_Image