Question Working with mp3 tags

Joined
Aug 21, 2010
Messages
8
Programming Experience
10+
I'm intersted in writing a program that reads and writes tags to mp3 (including the album art) using vb.net. Does anyone have a suggestions on where to start or any examples that might be available?

Thanks much.
 
You need a .Net library for ID3 tags (v2 for pictures), for example UltraID3Lib. Download, extract, and add reference to the dll and start using it. There is a VB.Net sample project that shows lots of functionality.

This short example just read the tags in a mp3 file and get a picture (the mp3 used did have a picture):
VB.NET:
Imports HundredMilesSoftware.UltraID3Lib
VB.NET:
Dim id3 As New UltraID3
id3.Read("d:\music\some.mp3")
Dim tag = id3.ID3v23Tag
Dim pics = tag.Frames.GetFrames(MultipleInstanceFrameTypes.Picture)
Me.PictureBox1.Image = CType(pics(0), ID3PictureFrame).Picture
 
Back
Top