C# Tutorial 92: How to Download a File from Internet using C#

C# Tutorial 92: How to Download a File from Internet using C#

ProgrammingKnowledge

10 лет назад

87,602 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@kusumikadey2873
@kusumikadey2873 - 19.08.2021 22:40

How to download a file from a server having particular IP?? Please do reply. It will be helpful.

Ответить
@Spiceysec
@Spiceysec - 06.07.2021 10:12

with 'Uri fileurl = new Uri();' what do i put in for just a link to a file not a text box input to the link?

Ответить
@fatimasiddiqui388
@fatimasiddiqui388 - 26.12.2020 12:56

damage pdf document after downloading, document gives an error in opening file

Ответить
@forex8899
@forex8899 - 19.11.2020 16:38

Thanks

Ответить
@genuinefraud8262
@genuinefraud8262 - 26.09.2020 20:02

Thanks for talking english! the tutorial helped me out a lot even tho its very old.

Ответить
@sultan-ns1kj
@sultan-ns1kj - 17.01.2020 02:48

thank you so much

Ответить
@AnimeniacSimey
@AnimeniacSimey - 04.01.2020 01:13

Thanks so much! But how do you download file to a certain path? Thanks!

Ответить
@romzamir
@romzamir - 21.03.2019 20:13

One and a half minutes of the video is just making a message box saying download complete...

Ответить
@thalesfeitosa
@thalesfeitosa - 15.02.2019 01:08

Your videos is awsome, but tell me, what i have to do, for the file don't overwrite the other file that i downloaded?

Ответить
@reindeboer7374
@reindeboer7374 - 13.02.2019 23:54

Just put Console.Read(); after wc.DownloadFileAsync() to fix the unreadable file problems. It won't quit before completion!

Ответить
@Eloiby
@Eloiby - 15.11.2018 03:49

Excellent! can you do it more like JDownloader? New tutorial please! button to cancel download and stop download

Ответить
@ragnarloth6531
@ragnarloth6531 - 20.10.2018 12:14

nice tutorial!

p/s: for others, you may want to unsubscribe the event after you prompt out msgbox download completed. otherwise the msgbox will pop out twice after you click download button for the second time

Ответить
@nbnb-kd5tw
@nbnb-kd5tw - 20.09.2018 18:16

:))))))))))))))))))))))))))))

Ответить
@microhuedevelopment810
@microhuedevelopment810 - 15.08.2018 12:27

Thank you, this is perfect for my app store app.

Ответить
@kiromorgan
@kiromorgan - 02.02.2018 00:48

I want to copy the code please send it to me

Ответить
@GodFatherGamingyt
@GodFatherGamingyt - 18.12.2017 10:15

WOW bro your connection is off bt also it Downloaded files thats amazing

Ответить
@kifkifa56
@kifkifa56 - 05.09.2017 00:47

Solved! Many have commented that file downloaded with zero bytes so I tried this on console application and solved this problem by just putting Console.Read(); after wc.DownloadFileAsync() method .... This is because without console.read(); the program exits before the file downloaded completely.

Ответить
@mustaqeezahmad5591
@mustaqeezahmad5591 - 28.08.2017 15:10

i think you can't replay to any comment

Ответить
@rouziLove
@rouziLove - 14.07.2017 11:27

I have a question. When I am downloading URL how I can choose in which folder to sva the file? Thank you

Ответить
@aeriuzgaming8737
@aeriuzgaming8737 - 30.05.2017 16:36

hello sir, do u have a tutorial for liking, scrolling, posting on facebook with voice command using c#?

Ответить
@Luc_Skywalker
@Luc_Skywalker - 12.03.2017 22:58

this is fine when you know the file your going to download. If you were to download a file from WebBrowser to save on your computer, unknown file extension, now, how to catch that would be helpful!

Ответить
@JunaidKhan-ht5jy
@JunaidKhan-ht5jy - 31.01.2017 16:56

Is this just for images or any kind of file like mp3 or any other ???

Ответить
@xicolopez9173
@xicolopez9173 - 01.09.2016 08:02

hello, i need to download json from google drive but when i try to download of this metod i cant because i need open the session first, can you help me?

Ответить
@anhdev3656
@anhdev3656 - 11.07.2016 21:00

hello, how to download folder ?? please

Ответить
@mmas.3315
@mmas.3315 - 26.04.2016 19:03

I dont have asynccompleted Event arg. it doesnt show up? whats the problem

Ответить
@jordangreenberg7990
@jordangreenberg7990 - 21.04.2016 04:03

Can I create my own executable file, kind of like Google earth or a pc game, using your method? Please let me know about that. Also, can I get the downloaded .txt file from a survey as well with this method? Because the surveys never unlock for me that much. I have to get visual studio for this. Is that right? Please let me know. So thanks so much.

Ответить
@programmerfromhershey4205
@programmerfromhershey4205 - 02.03.2016 16:27

can you also download from sites that uses surveys?

Ответить
@programmerfromhershey4205
@programmerfromhershey4205 - 02.03.2016 16:22

doesn't work, i try to download a .js file, i think hey it works, and i open the file and there Is no DATA in it
PLZ HELP ME!!

Ответить
@mattlambert3118
@mattlambert3118 - 23.08.2015 09:02

Are you sure this works for pdfs? This seems to work well for image files, but I can't get it to download anything else. Am I missing something? The videos are great, by the way.

Ответить
@jansterenborg
@jansterenborg - 25.07.2015 14:30

Good example of uploading a file to a program

Ответить
@theviniconceicao
@theviniconceicao - 23.07.2015 19:58

I'm Brazilian and I love your videos! You could bring a video of how to make a "Torrent Downloader"?

Ответить
@zerogrim4786
@zerogrim4786 - 02.04.2015 14:06

wow i like your video but sir how can i set the download location of the file that i wanna download? :o

Ответить
@omairzamir1246
@omairzamir1246 - 13.03.2015 11:20

Gud Work...!

Ответить
@fahim6191
@fahim6191 - 07.02.2015 10:45

i works perfectly, Thank you. But when i come to download video's its not working. please fix it in order to accept the request of a subscriber. Thank you, hope you will pay attention towards my request.

Ответить
@alexhackz1400
@alexhackz1400 - 25.10.2014 22:16

Hi , did you have a e-mail address , i want to learn something and only you can help me . Pleas answer :)
Thanks

Ответить
@RonaldoCristiano9013
@RonaldoCristiano9013 - 02.08.2014 23:21

Stupid Tutorial , You dont show where to write the fucking code

Ответить
@SriSuniFamily143
@SriSuniFamily143 - 11.03.2014 20:31

video files are not downloading

Ответить
@jehartbonilla3712
@jehartbonilla3712 - 05.11.2013 20:44

Hello Sir May i ask you about what books did you read to accomplish this knowledge thank you..

Ответить
@ahmedariftek4635
@ahmedariftek4635 - 22.10.2013 01:02

I have a question for you. how to user authorization in c# Thanks you very much for the knowledge and best regards. ·

Ответить
@relaxyourmind6181
@relaxyourmind6181 - 20.10.2013 22:46

Hello Sir, I was able to become really Good in both C# and Java thanks to your series! Sharing your knowledge is one of the best thing in the world. I have a question for you. * How to Generate a Report using C# ? Thanks you very much for the knowledge and best regards.

Ответить
@ProgrammingKnowledge
@ProgrammingKnowledge - 19.10.2013 01:35

Ответить