cancel
Showing results for 
Search instead for 
Did you mean: 

Download the file from SFTP server in WebDynpro JAVA

Former Member
0 Kudos

Hello Everyone,

I was looking for the below scenario to be impletemented in the WebDynpro JAVA.

1. Documents are stored on SFTP server with specific file name format.

2. IN WebDynpro JAVA, we have few fields to identify files stored on the SFTP server and search button.

3. Once user clicks on Search button, it should search those keywords in the file names on SFTP server and return the results.

4. In the result, links to be provided on WebDynpro application to download those files.

5. When user clicks on perticular file link, it gives save or open dialog box to download it.

Most of the above part, I am clear on how to achieve it. But where i need hep is, how to connect to SFTP server, search the files and then download the files from SFTP server and load those on the Java server to provide the download link.

Can anyone has come across such scenario or worked on the requriement to connect and download files from SFTP server?

Your help would be really appreciated.

Thanks,

Bhavik

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

you can use some open source lib like http://www.jcraft.com/jsch/

Former Member
0 Kudos

Hi Jun,

Is JSch is compatible with SAP NW 7.0 EHP1? That is what we have right now.. What version or Java it supports?

Also, is there any licensing required to use these libs in WebDynpro Java?

Thanks for your quick response.

-Bhavik

junwu
Active Contributor
0 Kudos

http://www.jcraft.com/jsch/

JSch is licensed under BSD style license.

The current JSch has the following features.

  • JSch is in pure Java, but it depends on JavaTM Cryptography Extension (JCE).  JSch is know to work with:
  • SSH2 protocol support.
  • Key exchange: diffie-hellman-group-exchange-sha1, diffie-hellman-group1-sha1
  • Cipher: blowfish-cbc,3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-ctr,arcfour,arcfour128,arcfour256
  • MAC: hmac-md5, hmac-sha1, hmac-md5-96, hmac-sha1-96
  • Host key type: ssh-dss,ssh-rsa
  • Userauth: password
  • Userauth: publickey(DSA,RSA)
  • Userauth: keyboard-interactive
  • Userauth: gss-api-with-mic
  • X11 forwarding
  • xauth spoofing
  • connection through HTTP proxy.
  • connection through SOCKS5 proxy.
  • port forwarding.
  • stream forwarding.
  • signal sending. The unofficial patch for sshd of openssh will be found in this thread.
  • envrironment variable passing.
  • remote exec.
  • generating DSA and RSA key pairs.
  • changing the passphrase for a private key.
  • partial authentication
  • SSH File Transfer Protocol(version 0, 1, 2, 3)
  • packet compression: zlib, zlib@openssh.com JZlib has been used.
  • hashed known_hosts file.
  • NONE Cipher switching. High Performace Enabled SSH/SCP supports NONE Cipher switching. Refer to ScpToNoneCipher.java.
  • JSch is licensed under BSD style license.
Former Member
0 Kudos

Thanks Jun. I checked the same details on the site you provided.

We are more looking from the no License options. Is there any other way to achieve the same functionality?

Thanks,

Bhavik