Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java api that will be use for transfering large file around 10MB to and from SFTP server.

 
Sunil Baboo
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone suggest java API that will be used for establishing communication between local machine and different SFTP server (both window and linux).

Thanks in Advanced.

 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe, the standard JDK does not have an API satisfying your need directly. However, using java.io.*, java.net and java.nio.* packages you may attempt to write a custom client. Also you may search the Internet for ready-made Java library.
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done Java TCP networking before between different environments (OS's). Worked just fine. I recommend just sending the data through a socket...Don't know much about SFTP, so can't help you there...You could try UDP, maybe? Never used UDP either so, no clue.
cc11rocks
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need a third party library for the SFTP connection. You should find something using Google.
 
Edo Dovrat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really liked https://github.com/shikhar/sshj
it's easy to use, clear api to upload/download using sftp, run ssh commands etc.

Edo
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic