Reading ID3 tags from the web with C#
I've seen the TagLib Sharp example of how they read from a Gnome VFS, but does anyone know how or have sample code on how I can read an MP3 file from a website and get the ID3 info?
So say i have some MP3's and the link is like this: "http://myserver.com/indie/band1.mp3"
I'm trying to us开发者_开发技巧er TagLib Sharp to do this: http://developer.novell.com/wiki/index.php/TagLib_Sharp:_Examples
Thanks in advance!
You would have to download the file locally and then run taglib against the local version.
WebClient Client = new WebClient ();
Client.DownloadFile("http://myserver.com/indie/band1.mp3", "band1.mp3");
you could use the TagLib.File.IFileAbstraction, but I find downloading the file locally to be a lot simpler.
精彩评论