Click here to Skip to main content
15,920,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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

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

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


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
 
Share this answer
 
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900