My uploaded images are stored in the .metadata folder that is created by Eclipse. How to retrieve them? It’s showing “page not found error-404”
itemName = item.getName();
File savedFile = new File(config.getServletContext().getRealPath("/")+"image\\"+itemName);
item.write(savedFile);
Your code should be writting your files into you webapp. If you are running it from Eclipse, then the webapp might be in the .metadata folder, but it still should work as any other webapp.
Static resources are managed directly by the server, you don’t need to do anything at all.
Once the file is downloaded (your code seems to be ok), the image will be available in the URL