title: Best Practice for save images in webservice
body: <p>I've got an application which is using a REST Web-Service to synchronize the data with other people. Till now the data are just text-based so I use XML files to store the data on a database and load it on the clients.</p>
  
  <p>But now I want to extend this application to add images and snyc them on the  Web-Service. I'm not sure what is the best practice this use case. </p>
  
  <p>1) Saving the images at the database</p>
  
  <p>2) Saving it on the file system and add a link in the database to the path</p>
  
  <p>so what would you do and why?</p>
  
  <p>And I need an example for store/load images to/from Jersey REST Web-Service from a Java client. :) </p>