ftp from a c sharp application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laoballer

    ftp from a c sharp application

    Hello all,
    I'm new to C sharp and am starting a project where I have to bring in
    historic weather data into a mysql database. The weather data can be
    retrieved via anonymous ftp spanning multiple files. What I would like
    to be able to do is create a C# application that will ftp into the
    server and download the necessary files automatically. Does anyone
    have any suggestions on how to do this and point me in the right
    direction.

    Thanks
  • Peter Duniho

    #2
    Re: ftp from a c sharp application

    On Tue, 14 Oct 2008 16:12:50 -0700, Laoballer <laoballer@gmai l.comwrote:
    Hello all,
    I'm new to C sharp and am starting a project where I have to bring in
    historic weather data into a mysql database. The weather data can be
    retrieved via anonymous ftp spanning multiple files. What I would like
    to be able to do is create a C# application that will ftp into the
    server and download the necessary files automatically. Does anyone
    have any suggestions on how to do this and point me in the right
    direction.
    You might start here:

    Comment

    • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

      #3
      Re: ftp from a c sharp application

      Laoballer wrote:
      I'm new to C sharp and am starting a project where I have to bring in
      historic weather data into a mysql database. The weather data can be
      retrieved via anonymous ftp spanning multiple files. What I would like
      to be able to do is create a C# application that will ftp into the
      server and download the necessary files automatically. Does anyone
      have any suggestions on how to do this and point me in the right
      direction.
      WebClient or (Ftp)WebRequest should be able to do what
      you want.

      (Ftp)WebRequest will provide you with a stream you can read from.

      WebClient has DownloadData and DownloadString methods for
      convenience.

      Arne

      Comment

      • Nicola Musatti

        #4
        Re: ftp from a c sharp application

        Laoballer wrote:
        Hello all,
        I'm new to C sharp and am starting a project where I have to bring in
        historic weather data into a mysql database. The weather data can be
        retrieved via anonymous ftp spanning multiple files. What I would like
        to be able to do is create a C# application that will ftp into the
        server and download the necessary files automatically. Does anyone
        have any suggestions on how to do this and point me in the right
        direction.
        In my opinion the standard .NET classes tend to be a bit too web
        application oriented. If I were you I'd consider looking for a specific
        library/component, either commercial or open source. My own one is
        available from here: http://dotnx.sourceforge.net/index.html , but I
        suggest you do a little shopping around before choosing.

        Cheers,
        Nicola Musatti

        Comment

        Working...