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. General Programming
  3. C#
  4. download from database

download from database

Scheduled Pinned Locked Moved C#
csharpdatabasehelptutorial
9 Posts 5 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.
  • A Offline
    A Offline
    Amitava Dutta
    wrote on last edited by
    #1

    Hi I need some help in C# where I will give a url and this will download a file from a particular site and will save in a given folder , example: asking to download this "Palkirgaan.ram" file from url - "http://www.ganguly.de/hemanta/Palkirgaan.ram" and will save it "C:/Amitava" this folder. Please help . Thanks in Advance Amitava

    G R 2 Replies Last reply
    0
    • A Amitava Dutta

      Hi I need some help in C# where I will give a url and this will download a file from a particular site and will save in a given folder , example: asking to download this "Palkirgaan.ram" file from url - "http://www.ganguly.de/hemanta/Palkirgaan.ram" and will save it "C:/Amitava" this folder. Please help . Thanks in Advance Amitava

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      You can use DownloadFile or DownloadFileAsync method of WebClient class. There are several download managers available on codeproject if you want to explore them.

      Giorgi Dalakishvili #region signature my articles #endregion

      1 Reply Last reply
      0
      • A Amitava Dutta

        Hi I need some help in C# where I will give a url and this will download a file from a particular site and will save in a given folder , example: asking to download this "Palkirgaan.ram" file from url - "http://www.ganguly.de/hemanta/Palkirgaan.ram" and will save it "C:/Amitava" this folder. Please help . Thanks in Advance Amitava

        R Offline
        R Offline
        Rupesh Kumar Swami
        wrote on last edited by
        #3

        hi, use following statement My.Computer.Network.DownloadFile("http://www.ganguly.de/hemanta/Palkirgaan.ram", "C:/Amitava/Palkirgaan.ram") hope this helps

        Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

        C A 2 Replies Last reply
        0
        • R Rupesh Kumar Swami

          hi, use following statement My.Computer.Network.DownloadFile("http://www.ganguly.de/hemanta/Palkirgaan.ram", "C:/Amitava/Palkirgaan.ram") hope this helps

          Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          That's VB, and C# does not have the My class, because C# users don't need shortcuts, we write code :P

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          R 1 Reply Last reply
          0
          • R Rupesh Kumar Swami

            hi, use following statement My.Computer.Network.DownloadFile("http://www.ganguly.de/hemanta/Palkirgaan.ram", "C:/Amitava/Palkirgaan.ram") hope this helps

            Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

            A Offline
            A Offline
            Amitava Dutta
            wrote on last edited by
            #5

            which reference I need to add . and is it work in C#? Amitava

            R 1 Reply Last reply
            0
            • C Christian Graus

              That's VB, and C# does not have the My class, because C# users don't need shortcuts, we write code :P

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              R Offline
              R Offline
              Rupesh Kumar Swami
              wrote on last edited by
              #6

              C# does not have the My class, because C# users don't need shortcuts, we write code

              :) yaa. thats code is from vb.But i convert it with converter which is located at following address Developerlabs[^]. so i think it is equivalent of c#.It's totally my mistake.

              Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

              N 1 Reply Last reply
              0
              • A Amitava Dutta

                which reference I need to add . and is it work in C#? Amitava

                R Offline
                R Offline
                Rupesh Kumar Swami
                wrote on last edited by
                #7

                hi amitava, this code is from vb.net . By mistake i does not check the equivalent of this statement in c# is proper or not. so i am sorry for my mistake

                Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

                A 1 Reply Last reply
                0
                • R Rupesh Kumar Swami

                  hi amitava, this code is from vb.net . By mistake i does not check the equivalent of this statement in c# is proper or not. so i am sorry for my mistake

                  Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

                  A Offline
                  A Offline
                  Amitava Dutta
                  wrote on last edited by
                  #8

                  It dose not matter .but if you have any example in C# please let me aware of that . Regards Amitava

                  1 Reply Last reply
                  0
                  • R Rupesh Kumar Swami

                    C# does not have the My class, because C# users don't need shortcuts, we write code

                    :) yaa. thats code is from vb.But i convert it with converter which is located at following address Developerlabs[^]. so i think it is equivalent of c#.It's totally my mistake.

                    Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

                    N Offline
                    N Offline
                    N a v a n e e t h
                    wrote on last edited by
                    #9

                    Rupesh Kumar Swami wrote:

                    Developerlabs[^].

                    It's a stupid converter. It gives wrong answer for many conversions.

                    All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                    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