• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic