Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.60/5 (2 votes)
See more:
how to get album art image from mp3 file

i am using ID3lib and want to get album art image from a mp3 file how can i do this please help..
Posted
Comments
Ahmed Bensaid 31-May-14 14:57pm    
Can you use VB.NET with ID3lib library ?
Example of a .NET library : http://home.fuse.net/honnert/UltraID3Lib/
Naveen Roy 1-Jun-14 2:54am    
yes ok but how to retrieve image from music mp3 file

I'm guessing you mean UltraID3lib: http://home.fuse.net/honnert/UltraID3Lib/

Try this for album art:
VB
Dim MP3Tag As New UltraID3
MP3Tag.Read("FilenameHere")

Try
        Dim pics = MP3Tag.ID3v2Tag.Frames.GetFrames(CommonMultipleInstanceID3v2FrameTypes.Picture)
        PIC-albumArt.Image = CType(pics(0), ID3v2PictureFrame).Picture
  Catch ex As Exception
        PIC-albumArt.Image = My.Resources.Lumia_Player_Song
End Try


Hope this helps! ;)
 
Share this answer
 
VB
Dim MP3Tag As New UltraID3
        MP3Tag.Read(File name gose here)

        Try
            Dim pics = MP3Tag.ID3v23Tag.Frames.GetFrames(MultipleInstanceFrameTypes.Picture)
            picbox1.BackgroundImage = CType(pics(0), ID3PictureFrame).Picture
        Catch ex As Exception
           picbox1.BackgroundImage = My.Resources.Theme_icon
        End Try
hope this helps
 
Share this answer
 
v3

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