Results 1 to 4 of 4

Thread: Embed Artwork in ID3 Tags

  1. #1

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Embed Artwork in ID3 Tags

    I have no idea what category this question should fall in so mods please move it necessary.

    I'm wondering if it is possible to embed artwork in the ID3 tags used by MP3 files.

    I have done some searching an most places say it's "possible" but no explaniation of how to accomplish it.

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  2. #2
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Embed Artwork in ID3 Tags

    Yes it is quite possible, but only in ID3v2 Tag. You need the ID3v2_HeaderData type for this:
    VB Code:
    1. Private Type ID3v2_HEADERDATA
    2.     Size As Long                    'tag size (without header & footer)
    3.     Version As String * 3           'tag version
    4.     FlagUnsync As Boolean           'unsynchronisation
    5.     FlagExtended As Boolean         'tag has extended header
    6.     FlagExperimental As Boolean     'tag is experimental
    7.     FlagFooter As Boolean           'tag has a footer
    8.     FlagUpdate As Boolean           'tag is an update
    9.     FlagCRC32 As Boolean            'extended header includes CRC-32
    10.     FlagRestricted As Boolean       'tag restrictions
    11.     CRC32 As Long                   'CRC-32 value
    12.     ResSize As ID3V2_RESTRICT_SIZE  'restrict size
    13.     ResCharCode As Boolean          'restrict character coding
    14.     ResChar As ID3V2_RESTRICT_CHARS 'restrict characters in frame data
    15.     ResPngJpeg As Boolean           'restrict images to PNG and JPEG
    16.     ResImg As ID3V2_RESTRICT_IMAGE  'restrict image size
    17.     Corrupt As Boolean              'is corrupt according to CRC-32
    18. End Type
    The ResImg would support images etc. But believe it or not, this is quite a tedious task and you may not find any example easily.

    Hope it helps you!!
    Show Appreciation. Rate Posts.

  3. #3

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: Embed Artwork in ID3 Tags

    Well that's a good starting point and I figured it would be a challenge since there isn't any examples.

    But I will give it the ole college try!

    Thanks

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  4. #4
    Lively Member
    Join Date
    May 2002
    Posts
    94

    Re: Embed Artwork in ID3 Tags

    I'm not to happy how MS did this but it still does what your asking...

    check this out.

    http://msdn.microsoft.com/msdnmag/is...4/EditorsNote/
    If your post is resolved, mark it as such using the thread tools, Keep the forums tidy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width