Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FTPProtocolException:STOR and FTPProtocolException:LIST??  RSS feed

 
Bikash Paul
Ranch Hand
Posts: 342
  • 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 file then my FTP client connected to host and showing me user login OK but after that it is giving me 'Error from put method:sun.net.ftp.FTPProtocolException:STOR' and during download it is giving me error 'Error from get method:sun.net.ftp.FTPProtocolException:LIST'.I have tried to find it out why it is giving me error but couldn't.Can any one plz guide me where Iam doing wrong.Below r my codes.

Regards
Bikash
 
Bikash Paul
Ranch Hand
Posts: 342
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!