title: how to access local drive file from server link
body: <p>I am working on spring boot trying to save the image on local drive and store the link of image in database but i am facing the problem to access the image through link.</p>
  
  <p>The files is stored on <code>F:\ImageData\ReportImage\20171218</code> how can allow the access image in local drive using link like <code>localhost:8085/ImageData/ReportImage/20171218/sample.jpg</code></p>
  
  <p>i have also try setting <code>server.servlet-path=F:\ImageData</code> and <code>server.context-path=F:\ImageData</code> in <code>application.property</code> but problem not solve.</p>
  
  <p>also if i save image in <code>src/main/resources/static/sample.jpg</code> can easily access but i want access from some local drive.</p>
  
  <p>please someone help me to solve my problem.</p>
  
  <p>Thank you.   </p>