Click here to Skip to main content
12,953,491 members (61,296 online)
Rate this:
Please Sign up or sign in to vote.
See more: , +
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:

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

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
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
ppolymorphe 2,020
Jochen Arndt 1,975

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