• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to download images from a remote machine?

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Your mother is a hamster and your father smells of tiny ads!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic