Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Downloading Files

Downloading Files

Scheduled Pinned Locked Moved C#
winformstutorialquestion
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dylan van Heerden
    wrote on last edited by
    #1

    Hi all How would I go about downloading files from the internet for example a zip file, using windows forms? Would I be using webservices? Thanks

    R S 2 Replies Last reply
    0
    • D Dylan van Heerden

      Hi all How would I go about downloading files from the internet for example a zip file, using windows forms? Would I be using webservices? Thanks

      R Offline
      R Offline
      Rei Miyasaka
      wrote on last edited by
      #2

      HttpWebRequest[^]. Try the sample code here[^].

      1 Reply Last reply
      0
      • D Dylan van Heerden

        Hi all How would I go about downloading files from the internet for example a zip file, using windows forms? Would I be using webservices? Thanks

        S Offline
        S Offline
        Sebastian Schneider
        wrote on last edited by
        #3

        Well, there are quite some ways to do this. Sit 1: You want to create some "auto-update" functionality. You could then run a "server"-program on a machine and have your client connect to that machine using whatever you think would be the best approach (e.g. sending "GET LATEST" and receiving a bytestream), all implemented by yourself. Sit 2: You want to download a certain file that is NOT provided by you. You would THEN have to use (and perhaps implement) the protocol used to retrieve that file. TCP / UDP sockets are readily available in the .NET FW, as are some "more detailed" implementations, which you might choose depending on where you plan to retrieve the file from. Without more information, thats all I can say.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups