title: How to serve svg as a link in rest controller?
body: <p>I want to serve svg icons as a link in my json.</p>
  
  <p>But I have a few questions.</p>
  
  <p>1) How can I contain svg file in database and java class?</p>
  
  <p>2) How can I serve svg file? I mean I want to serve it to get link..</p>
  
  <p>3) ..and put this link to the json like this:</p>
  
  <pre><code>{
      "id": 1,
      "name": "Some name",
      "linkToIcon": "https://server.com/schools/0/icon.svg"
  }
  </code></pre>
  
  <p>Actually I need a java type to either svg or png or jpeg images..</p>