My current implementation is the following:
I store the image in binary data in the Database. Then I load it and send it as Base64 data in the Http Response.
API:
@Lob
@Column(length = 16777215)
private byte[] image;
Then load it in the UI <img ng-src="data:image/png;base64, {{product.image}}">
The HTTP Response is Huge for some images. It works well for a couple of images but let's say I want to display 100 images.
Is this the proper way to do it fast and well?