Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

    Hello everyone,

    Can anyone please help me out...

    I can able to transfer files from my local system to FTP server(port no:21) with the help of " org.apache.commons.net.ftp " libraries.
    and also I can able to transfer files from my local system to SFTP server(port no:22) with the help of "com.jcraft.jsch.Channel " libraries .
    But, i'm unable to transfer files from " FTP server to SFTP server " and " SFTP server to FTP server "..!

    I hope you understand my Question. Please help me out...

    Thanks inAdvance.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

    Why can't the servers use the same code to transfer files as used on your local system?

    --- Update ---

    Also posted at: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,225
    Thanks
    176
    Thanked 817 Times in 760 Posts
    Blog Entries
    5

    Default Re: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

    Please read The problems with cross-posting

    Your question doesn't make much sense - FTP and SFTP transfer is between a client and server. If you are asking about the client using FTP and server using SFTP (or vice-versa) - they are completely different protocols.

Similar Threads

  1. Simple Ftp server for uploading and downloading file
    By eku in forum What's Wrong With My Code?
    Replies: 11
    Last Post: January 25th, 2014, 11:00 AM
  2. Replies: 22
    Last Post: February 2nd, 2013, 08:16 PM
  3. Replies: 2
    Last Post: October 27th, 2011, 08:51 AM
  4. simple ftp server and ftp client
    By simontkk2005 in forum Java Networking
    Replies: 4
    Last Post: January 26th, 2011, 09:29 AM
  5. [SOLVED] Problem trying to retrieve a file from ftp server
    By alexdd1987 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: December 16th, 2010, 05:27 PM

Tags for this Thread