I tried to return the image as shown below:
return ok(new File("http://example.com/dpa/client_name/images/client_log.jpg"));
but the method in the controller couldn't fetch the image from the remote server and threw a image not found exception.
How do I retrieve an image from the remote server and return as a response using java play framework?