I have images inside this location:
C:\Users\AshwinPC\Desktop\vemployee\src\main\webapp\upload
There are number of images inside this image folder.
So,I am using following method to load the image :
$(document).ready(function(){
loopforData();
function loopForData(){
var newDataList=[];
newDataList=[{"id":1,"iNumber":"i1231223","fullName":"Ashiwn Karki","joinedDate":"10/12/2019","position":"SE","reportsTo":"ASDD","cubicleNo":"23","jobType":"ASAS","fileData":null}];
var text="";
for (var i=0;i<newDataList.length;i++){
var r = newDataList[i];
console.log(r);
text +="<div class='col-lg-4 col-md-4 col-sm-4 col-xs-12'>"+
"<div class='box-part text-center'>"+
"<img src='C:\\Users\\AshwinPC\\Desktop\\vemployee\\src\\main\\webapp\\upload\\"+r.iNumber+"'>"+
"<div class='title'>"+
"<h4> Full Name :"+ r.fullName +"</h4>"+
"</div>"+
"<div class='text'>"+
"<span>Inumner : '+newDataList[i].iNumber}+'</span></br>"+
"<span>Joined Date : '+newDataList[i].joinedDate}+'</span></br>"+
"<span>Position : '+newDataList[i].position}+'</span></br>"+
"<span>Reports to: '+newDataList[i].reportsTo}+'</span></br>"+
"<span>Cubicle No: '+newDataList[i].cubicleNo}+'</span></br>"+
"<span>Job Type:'+newDataList[i].jobType}+'</span></br>"+
"</div>"+
"<span>Reports to: newDataList[i].reportsTo}</span>"
+
"</div>"
}
console.log(text);
$("#abc").html(text);
}
});
<div class="row" id="abc">
</div>
This function populates the data inside this above div:
The problem is that JS is not recognizing the path of my image files.The console is being printed as:

How can I load the images in javascript?I am using spring boot.
.pngor.jpgat the end of the pathhtdocs-folder