vishwanatha

Hi,

i will upload one song from fileupload control at this time i would like to read the advanced properties of selected song, advanced properties like Album, Author, Title, Duration etc., of the selected song. How to do this

Thanks

Vishwanath




Re: Visual C# General How can we read the properties of song selected from the fileupload control

Khin

hi vishwanatha,

u may try this:

Dim id As ID3V1Tag // this for mp3

//Dim w as WMAID3Tag // this for wma

//w = New WMAID3Tag(tbFilename.Text)

id = New ID3V1Tag(tbFilename.Text)

tbTitle.Text = id.title

tbArtist.Text = id.artist

tbAlbum.Text = id.album

tbGenre.Text = id.genre

tbYear.Text = id.year.ToString

tbTrack.Text = id.track.ToString

tbDescription.Text = id.comment

hope this can help you...:)





Re: Visual C# General How can we read the properties of song selected from the fileupload control

Geert Verhoeven

Hi,

Where do you get the class definitions for ID3V1Tag and WMAID3T

Greetz,

Geert

Geert Verhoeven
Consultant @ Ausy Belgium

My Personal Blog






Re: Visual C# General How can we read the properties of song selected from the fileupload control

Khin

ohs....sorry...

i forgot to attach the original source...

here you are:

http://www.codeproject.com/vb/net/tagreader.asp

complete source code...





Re: Visual C# General How can we read the properties of song selected from the fileupload control

vishwanatha

Hi,

Please let me know how to make it compatible for asp.net websites.

Thanks

Vishwanath