Before the write, your read program is actually writing out "Third Part Frame id: TPE1 Frame Size: 10 Flags: \0An artist" and "Third Part Frame id: TALB Frame Size: 9 Flags: \0An album", but those "\0" bytes are not visible.

Your writer needs to not deal with just the frame type, frame length, and flags. It also has to deal with (for some frame types) one more byte which I quoted the documentation for above.

- tye        


In reply to Re^3: ID3 tag version 2.4.0 Pack and Unpack (text encoding byte) by tye
in thread ID3 tag version 2.4.0 Pack and Unpack by thanos1983

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.