title: Sending images to angular client in spring boot rest api?
body: <p>I am developing a rest api using spring boot. 
  I have an upload image service which stores images in my project workspace and image url in stored in db.
  I have an entity product which has a list of images. Now I have to return images back to the angular client. </p>
  
  <p>I have two questions in mind:</p>
  
  <p>Q1. Should I return just a list of image urls to the client? If yes how should client render images from those urls. </p>
  
  <p>Q2. OR Should I return list of images itself? If yes please show me logic which is fast and efficient.</p>
  
  <p>Q3. OR Should I return individual image one by one? If yes please tell me how.</p>
  
  <p>Update:</p>
  
  <p>Note: Since, Rest api is on one machine and Angular client is on another machine. I think that the image url needs some kind of prefix: </p>
  
  <p>Suppose my project is in E:/myproject/ and images are in E:/myproject/images/image-name.jpg, so what should be prefix for image url.</p>