• Post Reply Bookmark Topic Watch Topic
  • New Topic

SFTP Connection  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been having issue with uploading files via SFTP using the following imports



When I upload the files via WinSCP, I don't have any issues. That means, the issue is
within my program. Following is the test code that I wrote. The program freezes at



and never finishes. I don't receive any error message or exception. Please help me!

 
Saloon Keeper
Posts: 1866
238
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks suspicious: String remoteDir = "//remoteDir//";

What is the actual directory that the FTP server will translate this to?: /home/usr/remoteDir?
 
Waylon Wolf
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can transfer a very small files such as 1kb files but not larger than 100 kb.
I also set a timer to 600000ms which is an hour.

Everything seems to work for the first time but when I tried to test run for second time ,
it does not seem to work.

Ron McLeod wrote:This looks suspicious: String remoteDir = "//remoteDir//";

What is the actual directory that the FTP server will translate this to?: /home/usr/remoteDir?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!