• 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

Get File from FTP Server with passive access

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I got to read a file from a ftp server, but its been set up with the passive mode. So how to set up for the passive mode and read the file ? Any thoughts?
Thanks,
Bala.
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
form where ur trying FTP?? are you talking about any Java FTP api or what??
please explain your problem in details.
thanks
maulin.
 
Bala Hari
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for your speedy response. Actually I want to download the file residing in their ftp server, I can download the file if its been set up as active as follows.
a) open an input stream to the URL (ie., ftp://username assword@host/directory/filename)
b)read the stream and write to a local file.
But as it is set up as passive, i am wondering how to access that file?
--Bala.
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
may be that would not work as you experience if its working via Passive mode.
you have to use FTP client. you can't just read in like that i believe.
any more thoughts from anybody else??
thanks
maulin.
 
reply
    Bookmark Topic Watch Topic
  • New Topic