I've Angular 5 app with java rest services, the Java application saved images in a folder which is outside the java app. Now, the Angular suppose to read these images. Because these images are shared by both applications, it make sense to save them outside but it doesn't work or not sure how to do it.
Example of scenario I have: The Java app saved images into:
C:\Users\MyName\Documents\workspace\myentitiy
The Angular component has the following template:
<img [src]=imagesPath alt="">
The imagesPath declared inside the component:
public imagesPath :any = "../myentitiy/1/myfiles/1/body.png";
My assets folder (which not include the images I need again as the requirement):
C:\Users\MyName\Documents\workspace\MyAngularApp\src\assets
I've tried to changes imagesPath to different path but couldn't make it to work, any idea how Angular can access files outside or I HAVE to change the Java application to save into the Angualr's assets folder?
Thanks.