tags:

views:

261

answers:

3

For example I have a file '1.mp3', metadata are length, codec, compositor, license, bitrate, etc How can I get that metadata? I want to get metadata from different types of files.

+1  A: 

For audio formats, have a look at TagLib Sharp.

Martinho Fernandes
what about, say, Images? TagLib sharp doesnt work on those AFIK
Muad'Dib
@Muad'Dib: Originally the question didn't mention images. "different types" could mean just different audio formats...
Martinho Fernandes
true, he didn't say images, but he also didn't specify WHAT kind of files, and DID say "different types of files." he DID use mp3 as an example, tho
Muad'Dib
A: 

See also this question: http://stackoverflow.com/questions/220097/read-write-extended-file-properties-c/2096315#2096315

csharptest.net
<<<thank you>>>
Sergii
+1  A: 

The way that you get meta-data depends on the file type. For example, the metadata in an MP3 is stored differently then, say, a JPEG image.

Muad'Dib