file transfer across the internet?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: file transfer across the internet?

  1. #1
    Lim Wing Hoe Guest

    file transfer across the internet?

    Hello all,

    I understand how to copy a file from one directory to another directory,
    "locally", in my own computer.

    Now, I want to create a small application where I can copy a file to another
    computer, let's say, I'm using a laptop and want to copy it to a webserver.
    I am confused on how to do that. How can I use the codes to do the file copy
    task? And how can I copy it in binary format instead of ascii?

    I hope someone can lighten me up here. Perhaps some diagrams or sample
    codes.

    Thanks.


    --



    Best Regards,
    Wing Hoe
    ---------------------------------------------------------------
    Email1: winghoe@yahoo.com
    Email2: winghoe@hotmail.com
    ICQ no: 2213281
    www: http://pwp.maxis.net.my/winghoe
    ---------------------------------------------------------------





  2. #2
    Paul Clapham Guest

    Re: file transfer across the internet?

    The Internet method for copying a file from one system to another is called
    FTP. It handles both text and binary files.

    Lim Wing Hoe <winghoe@hotmail.com> wrote in message
    news:397aa9e9@news.devx.com...
    > Hello all,
    >
    > I understand how to copy a file from one directory to another directory,
    > "locally", in my own computer.
    >
    > Now, I want to create a small application where I can copy a file to

    another
    > computer, let's say, I'm using a laptop and want to copy it to a

    webserver.
    > I am confused on how to do that. How can I use the codes to do the file

    copy
    > task? And how can I copy it in binary format instead of ascii?
    >
    > I hope someone can lighten me up here. Perhaps some diagrams or sample
    > codes.
    >
    > Thanks.
    >
    >
    > --
    >
    >
    >
    > Best Regards,
    > Wing Hoe
    > ---------------------------------------------------------------
    > Email1: winghoe@yahoo.com
    > Email2: winghoe@hotmail.com
    > ICQ no: 2213281
    > www: http://pwp.maxis.net.my/winghoe
    > ---------------------------------------------------------------
    >
    >
    >
    >




  3. #3
    Lim Wing Hoe Guest

    Re: file transfer across the internet?

    Hello Paul,

    Yeah, I know that. But I don't know how to use "THE" FTP protocol to do it.
    If I want to do that, I will have to create an FTP server as well. That is
    if I know how the commands for both the server and the client. I can find
    codes(hopefully, somewhere out there) that for an FTP client, but not codes
    on an FTP server.

    How about reading the entire file into an OutputStream and send it over to
    the client? Is that possible? What if the file that it is transferring is
    too big, say 30MB?

    --



    Best Regards,
    Wing Hoe
    ---------------------------------------------------------------
    Email1: winghoe@yahoo.com
    Email2: winghoe@hotmail.com
    ICQ no: 2213281
    www: http://pwp.maxis.net.my/winghoe
    ---------------------------------------------------------------


    Paul Clapham <pclapham@core-mark.com> wrote in message
    news:397c5a7d@news.devx.com...
    > The Internet method for copying a file from one system to another is

    called
    > FTP. It handles both text and binary files.





  4. #4
    Paul Clapham Guest

    Re: file transfer across the internet?

    Whatever you do, you will have to have something running on both machines to
    transfer the file. You have a build-or-buy decision to make. You say you
    would have to create an FTP server -- it would be easier and faster to buy
    one. (It doesn't have to be written in Java, FTP is a standard protocol.)
    And there is Java code available for FTP clients.

    If you don't want to use FTP, then you have to have something else running
    on your "server" system that is expecting somebody to call in and send or
    receive files. You could write a sockets application to do that too.

    Lim Wing Hoe <winghoe@hotmail.com> wrote in message
    news:397c81c5@news.devx.com...
    > Hello Paul,
    >
    > Yeah, I know that. But I don't know how to use "THE" FTP protocol to do

    it.
    > If I want to do that, I will have to create an FTP server as well. That is
    > if I know how the commands for both the server and the client. I can find
    > codes(hopefully, somewhere out there) that for an FTP client, but not

    codes
    > on an FTP server.
    >
    > How about reading the entire file into an OutputStream and send it over to
    > the client? Is that possible? What if the file that it is transferring is
    > too big, say 30MB?
    >
    > --
    >
    >
    >
    > Best Regards,
    > Wing Hoe
    > ---------------------------------------------------------------
    > Email1: winghoe@yahoo.com
    > Email2: winghoe@hotmail.com
    > ICQ no: 2213281
    > www: http://pwp.maxis.net.my/winghoe
    > ---------------------------------------------------------------
    >
    >
    > Paul Clapham <pclapham@core-mark.com> wrote in message
    > news:397c5a7d@news.devx.com...
    > > The Internet method for copying a file from one system to another is

    > called
    > > FTP. It handles both text and binary files.

    >
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center