Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

IPTC Tags - Error on handling blank strings

Last post 13 Mar 2008, 7:34 AM by Brett Styles. 0 replies.
Sort Posts: Previous Next
  •  13 Mar 2008, 7:34 AM 13472

    IPTC Tags - Error on handling blank strings

    When I write out 15 IPTC tags (index 0-14) and the data for one of these tags is empty the data returned in a subsequent read is shifted out of sequence.

    ie. I store image data in these tags and have done since ver 2.0 and now when I try and retrieve that data from the tag as below, I get an error because this is now receiving data from tag 5 if tag 3 was blank.

    What is actually received is 0,1,2,4,5 (as far as stored data goes)

    Convert.ToSingle(iptcData[iptcData.IndexOf(iptcData.LookupTag(174, 4))].Data)

    Was this a deliberate change or a bug?

    If it was a breaking change then how do we now fetch the original stored index with the data?


    Brett Styles
    IT Manager
    Dream Building Pty Ltd
    Filed under:
View as RSS news feed in XML