I have a java web service through which I upload images to a file server. I want to access these images from my java web app. How can I make the image files (and eventually other static files) available from this file server?
The only thing I could think of was to use Apache Http server as a proxy to my web app for these images, but that circumvents the security measures of the web app.
UPDATE:
- Servlet container: Tomcat
- Web app is on separate server from images.
- Web service is on same server as images and has direct access to file system.
- Both web app and service use spring security for authentication/authorization, I want to continue to use this security framework to for image access.