Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hii to all, iam developing a project in asp.net.Hear in my project iam providing a feature to see online videos, can listen online songs etc..and also users can download our audio,videos from our websites,for uploading songs&videos i have done, but iam strucked in downloading code,please send me the code for downloading the audio,video files form asp.net webpages
Thanks in advance
 

with regards
D Ramu
Posted 9-Dec-12 2:29am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi, in vb.net i'm using this code:
 

'Start download
Dim WebClient As New System.Net.WebClient()
WebClient.DownloadFile(New Uri(strYourUrl), strWhereToSave)

 
strYourUrl = string like http://www.youtube.com/watch?v=JRp2XedXkSA&feature=g-high-u
strWhereToSave = Directory where to save it, like C:\Examens
 
Remarks:
This will wait untill the file is downloaded to continue in the code,
you can use async downloads if you want too but i find it harder to use.
 
Bert
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 320
1 OriginalGriff 155
2 Peter Leow 115
3 Afzaal Ahmad Zeeshan 114
4 deepakdynamite 110
0 OriginalGriff 7,510
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 4,994
3 Maciej Los 4,936
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100