wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes java api that will be use for transfering large file around 10MB to and from SFTP server. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java api that will be use for transfering large file around 10MB to and from SFTP server." Watch "java api that will be use for transfering large file around 10MB to and from SFTP server." New topic
Author

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

Sunil Baboo
Greenhorn

Joined: Aug 12, 2010
Posts: 16
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

Joined: Mar 18, 2011
Posts: 312

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.


S.D. MADHAN
Not many get the right opportunity !
john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

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


“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

You'll need a third party library for the SFTP connection. You should find something using Google.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Edo Dovrat
Greenhorn

Joined: Jun 02, 2008
Posts: 3
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java api that will be use for transfering large file around 10MB to and from SFTP server.
 
Similar Threads
SFTP
Secure FTP issue. Need help.
File Transfer
where to place the Public key
sftp library free