• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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: 2270
290
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?

 
Bras cause cancer. And tiny ads:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!