Click here to Skip to main content
Sign Up to vote bad
good
See more: C#ASP.NETSQL2008
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 - 1:29


2 solutions

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  
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 208
1 Maciej Los 156
2 Santhosh G_ 155
3 Richard MacCutchan 145
4 Tadit Dash 140
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,937
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,135


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid