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
  1. Home
  2. Mobile Development
  3. Mobile
  4. Downloading a file

Downloading a file

Scheduled Pinned Locked Moved Mobile
csharpquestionhelp
5 Posts 2 Posters 0 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.
  • H Offline
    H Offline
    haolan
    wrote on last edited by
    #1

    Hi How do I download a file in my c# program? I am trying to download an exe file from a webserver to a local directory at my PDA. I have tried to use the WebClient class from c# .NET but it seems that it doesn't exists in Compact Framework. Can anyone please help me to solve this?

    A 1 Reply Last reply
    0
    • H haolan

      Hi How do I download a file in my c# program? I am trying to download an exe file from a webserver to a local directory at my PDA. I have tried to use the WebClient class from c# .NET but it seems that it doesn't exists in Compact Framework. Can anyone please help me to solve this?

      A Offline
      A Offline
      Arjun Marwaha
      wrote on last edited by
      #2

      Hello, Yes, the WebClient class is not implemented in CF. You can use the HttpWebRequest/FileWebRequest, or mainly the WebRequest class. Check the MSDN reference for more information on these classes. Regards, Dave

      Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com

      H 1 Reply Last reply
      0
      • A Arjun Marwaha

        Hello, Yes, the WebClient class is not implemented in CF. You can use the HttpWebRequest/FileWebRequest, or mainly the WebRequest class. Check the MSDN reference for more information on these classes. Regards, Dave

        Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com

        H Offline
        H Offline
        haolan
        wrote on last edited by
        #3

        The FileWebrequest does not seem to be in the Compact Framework either. Or should I add a reference or something?

        A 1 Reply Last reply
        0
        • H haolan

          The FileWebrequest does not seem to be in the Compact Framework either. Or should I add a reference or something?

          A Offline
          A Offline
          Arjun Marwaha
          wrote on last edited by
          #4

          Hello, Sorry about that. Yes, FileWebrequest is not available in CF. However you can use the HttpWebRequest or WebRequestclass to achieve the desired. Regards, Dave

          Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com

          H 1 Reply Last reply
          0
          • A Arjun Marwaha

            Hello, Sorry about that. Yes, FileWebrequest is not available in CF. However you can use the HttpWebRequest or WebRequestclass to achieve the desired. Regards, Dave

            Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com

            H Offline
            H Offline
            haolan
            wrote on last edited by
            #5

            Thanks a lot :) My problem is solved..

            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