• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Problem with FTPClient??

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all friends,
I am developing one FTP client for uploading and downloading file to and from my webserver but when Iam trying to upload and download file then my FTP client connected to host and showing me user login OK but after that it is giving me 'Error:sun.net.ftp.FTPProtocolException'.I have tried to find it out why it is giving me error but couldn't.Can any one plz try with my code and help me to slove my problem.Below r my codes.

Regards
Bikash
[ July 25, 2003: Message edited by: Bikash Paul ]
 
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
the sun package is not supported,why don't you use the appache commons net package to write the ftp program.
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Why Sun net package not supported?Can u plz give me link of appache commons net package so that I can use that to write my Ftp program
Regards
Bikash
[ July 26, 2003: Message edited by: Bikash Paul ]
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Now I have modified my putFile() method's code but still Iam getting below Error.Can any one plz guide me where Iam doing wrong.
Connecting to host www.kdkinfotech.com
User kmrraj login OK
Directory: img
File C:\config_file.txt: 796 bytes
The value of m_sHostFile:C:\config_file.txt
Error from put method: sun.net.ftp.FtpProtocolException: STOR config_file.txt
Modified code of putFile() method:-

Regards
Bikash
[ July 26, 2003: Message edited by: Bikash Paul ]
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic