I have an application using JAX-RS. I upload and save images here :
C:\Java Files\apache-tomcat-7.0.56\wtpwebapps\myApp\images
Uploading works correctly using this code :
http://www.mkyong.com/webservices/jax-rs/file-upload-example-in-jersey/
but problem is when I publish or sometimes restart server. All images are deleted after publish or sometimes restart of server.
Can anyone tell me solution for this problem ?