File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to download images from a remote machine?

 
Sajee Joseph
Ranch Hand
Posts: 200
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have a curious problem.
I have hosted an application on Tomcat. One of the modules called 'Employee Directory' needs to display the images of employees. Now my problem is that the Employee images are stored on one particular machine in the intranet.(For eg: \\192.168.2.119\\images\Bob.jpg). Now on the Home page i need to show a link for 'Employee Directory' on click of which i need to display the pages with the images. But the images as i mentioned earlier are present on someother machine (which is known) other than the machine on which Tomcat server is running.
One option would be to make my servlet (on servlet load) download the images to some location on the server and then display on the client. But in this case i would always need my login to the Remote machine from my server to make the images available. How do i get about this?
are there any other solutions??
 
Billybob Marshall
Ranch Hand
Posts: 202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this thread's first reply; that's basically what you'll have to do if you don't provide an HTTP-accessible URL to the images.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic