• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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!

 
Bartender
Posts: 2038
273
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!