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.
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.
1) Saving the images at the database
2) Saving it on the file system and add a link in the database to the path
so what would you do and why?
And I need an example for store/load images to/from Jersey REST Web-Service from a Java client. :)