How to implement FTP in Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreekandan
    New Member
    • Nov 2006
    • 98

    How to implement FTP in Java

    Hi everyone....
    Now im going to implement FTP by using java program..But i dont know how to implement that...So kindly send me the java code to implement FTP program.And also I need help that "how to transfer the file by using FTP"
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    FTP means "File Transfer Protocol". A protocol is a certain way of doing things;
    first you have to know how an FTP implementation does things and what it can do.
    Read this article first before you want to implement anything.

    kind regards,

    Jos

    Comment

    • sreekandan
      New Member
      • Nov 2006
      • 98

      #3
      Hi..
      Actually i need the Java code to implement FTP...
      But I know the concept of FTP....
      And also i want to know how to transfer file from server to client



      Originally posted by JosAH
      FTP means "File Transfer Protocol". A protocol is a certain way of doing things;
      first you have to know how an FTP implementation does things and what it can do.
      Read this article first before you want to implement anything.

      kind regards,

      Jos

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        Originally posted by sreekandan
        Hi..
        Actually i need the Java code to implement FTP...
        But I know the concept of FTP....
        And also i want to know how to transfer file from server to client
        Following the posting guidelines, we can't provide you with the code to implement FTP, even if we wanted to.

        If you need to use FTP but don't want to write it yourself, you can check out this article which compares various implementations of FTP for Java. You can then download the library you like best and use that. I myself for example have used the apache commons library, which contains FTP.

        Greetings,
        Nepomuk

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by sreekandan
          Actually i need the Java code to implement FTP...
          So you don't want to implement it yourself as you claimed in your OP. Please
          say so in your next messages and mention it in your topic title. Something like
          "(free) FTP code wanted" would do fine.

          kind regards,

          Jos

          Comment

          • Nepomuk
            Recognized Expert Specialist
            • Aug 2007
            • 3111

            #6
            Originally posted by JosAH
            So you don't want to implement it yourself as you claimed in your OP. Please
            say so in your next messages...
            Actually, the OP did mention it:
            Originally posted by sreekandan
            ...So kindly send me the java code to implement FTP program...
            Greetings,
            Nepomuk

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #7
              Originally posted by nepomuk
              Actually, the OP did mention it:Greetings,
              Nepomuk
              I always ignore phrases like "send me teh codez", it only induces 21st century
              alchemy: no need to understand anything, just copy and paste the spells and
              whine afterwards if it doesn't work.

              kind regards,

              Jos ;-)

              Comment

              Working...