Click here to Skip to main content
15,917,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Any help please... I am trying to download and save the youtube video as flash video file but my code doesn't work.....

Here is my code:
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
     
My.Computer.Network.DownloadFile("http://www.youtube.com/v/gbPgKFRUD04?version=3", "C:\Users\Neo\Desktop\videofile.flv")

End Sub

End Class

The video file could only be downloaded at 4 kb and the file won't open..

I hope someone could help me.
Thank you in advance.


How come download managers are able to do so...
Posted
Updated 19-Jul-11 1:33am
v3

Youtube does not allow downloads so what you probably download is a page that says "you cannot download this page" or "invalid URL" or something. Basically, what you are trying is not going to work.
 
Share this answer
 
Youtube disabled this little functionality. You no longer have the ability to download video from YouTube.
 
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