Click here to Skip to main content
12,355,050 members (43,153 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL-Server , +
Hii to all, iam developing a project in 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 webpages
Thanks in advance

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

Solution 1

Hi, in i'm using this code:

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

strYourUrl = string like
strWhereToSave = Directory where to save it, like C:\Examens

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.

Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2016
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