It's a standard (possibly trivial) situation, but I cannot find detailed information on the topic.
Suppose we have a web application A (http://my-webapp) and a file server F (http://file-server).
For clarity:
- A is run on Jetty 9;
- F is visible for Jetty server, and NOT visible for a client.
What is the best practice to show in A a picture stored on F?
Suppose client makes a request http://my-webapp/pictures/123, where 123 - any id, which somehow points to a picture stored as http://file-server/storage/xxx123.jpg, and expects to see the picture in the browser.
http://my-webapp/pictures/{id}to a script in A that reads the image file content from F and returns it