I am having around 400 images all stored in database and getting those in C# code in byte[].
My requirement is very simple. I have Design class which contains Name, Code and byte[]. I am binding this class using ngFor
<div *ngFor="let design of designs" >
<img height="200" width="200" src="{{design.data}}" />
<div>
<h2>{{ design.name }}</h2>
<h4>{{ design.code }}</h4>
</div>
I tried this link but it is not working for me. I used both directive and other method. Looks like few things got changed from 2 to 7.
The second answer in the above link without using directive gave me another error. Error is this
Finally, after spending more than a half day, I am unable to display image in UI. I am developing using Angular 7. What would be the best way to display images?