code to transfer files from one computer to another

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gpbbdt
    New Member
    • Nov 2007
    • 3

    code to transfer files from one computer to another

    hello everybody..

    can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by gpbbdt
    hello everybody..

    can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
    Double posting is not only confusing to people trying to follow your problem, it is also illegal (against site rules).
    Now, no one is going to write this code for you and dump it on you on a silver plate as explained here. We are however willing to help you write the program yourself if you show that you are doing something on it yourself.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by gpbbdt
      hello everybody..

      can anyone post the code for transferring files from one machine to another in java.. plz.... its urgent...
      But there already is 'ftp'; it was made especially for this purpose and it is quite
      good at it imho. Why do you want to reinvent the wheel? And why is it urgent?

      kind regards,

      Jos

      Comment

      • dav3
        New Member
        • Nov 2006
        • 94

        #4
        perhaps it has to be a client server app?

        Comment

        • gpbbdt
          New Member
          • Nov 2007
          • 3

          #5
          hello everybody,

          First of all my sincere apology to ask for code which is against the rule of this site. As I am new to this forum i was not aware of the rules.

          I am learning Java and I am doing the project on P2P file sharing networks. And I am finished with my GUI. I just want any good material which will guide me using FTP. So can anyone tell me any site or ebook which will give information on this??

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Just google for "Java ftp" and you'll find everything you need.

            kind regards,

            Jos

            Comment

            • heat84
              New Member
              • Nov 2007
              • 118

              #7
              There are many options for that , ftp works but seems there will be kinda a client -server architecture. You can try to look for ways of sharing files using null modem , the code will require you to have knowledge of opening comm ports and reading streams of data. Read more about the javax.comm package.

              Comment

              • JosAH
                Recognized Expert MVP
                • Mar 2007
                • 11453

                #8
                Originally posted by heat84
                There are many options for that , ftp works but seems there will be kinda a client -server architecture. You can try to look for ways of sharing files using null modem , the code will require you to have knowledge of opening comm ports and reading streams of data. Read more about the javax.comm package.
                I'd rather not; it introduces another hurdle: serial communication using Java. Better
                open a ServerSocket then and contact a server running on the localhost.

                kind regards,

                Jos

                Comment

                • heat84
                  New Member
                  • Nov 2007
                  • 118

                  #9
                  Originally posted by JosAH
                  I'd rather not; it introduces another hurdle: serial communication using Java. Better
                  open a ServerSocket then and contact a server running on the localhost.

                  kind regards,

                  Jos
                  Thats a good idea jos but if you open a server socket , it ceases to be peer to peer , seems he wants a peer to peer solution. Opening a server socket makes it client-server.

                  Regards heat84

                  Comment

                  • aduddukuri
                    New Member
                    • Feb 2008
                    • 1

                    #10
                    Originally posted by dav3
                    perhaps it has to be a client server app?
                    how to transfer files from client to server

                    Comment

                    • r035198x
                      MVP
                      • Sep 2006
                      • 13225

                      #11
                      Originally posted by aduddukuri
                      how to transfer files from client to server
                      Have you tried any of the suggestions mentioned in this thread?

                      Comment

                      Working...