In our application user can link a logo to the application and the dimensions of this image will be stored in the database along with image url, upon successful operation the image will be displayed on the page on the reload.
Our problem is when a user tries to link a image stored on his local intranet server then application is not able to access that image, probably due to security reason.
We are using a HttpClient to access the image. It works well for all other cases except which is specified above. Please suggest any workaround.
If you use
HttpClientto access the external image server-side (in your Java EE application), this will never work as you simply do not have access to the user’s intranet. There are 2 solutions:<img src="http://user.intranet.com/logo.gif.The latter solution may introduce security problems when it comes to HTTPS (TLS) and cross-domain resources.