• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with FTPClient??

 
Bikash Paul
Ranch Hand
Posts: 342
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
zb cong
Ranch Hand
Posts: 416
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic