title: Error reading IPTC fields from JPEGs in .NET
body: <p>I get the following exception when calling BitmapMetadata.GetQuery("/app13/irb/8bimiptc/iptc") on about 1% of JPEGs I have tried this on. What could be causing this and what can I do to fix it? (I have tried Googling but I can only find one relevant result asking the same question but with no answer.)</p>
  
  <pre><code>System.OverflowException:
  The image data generated an overflow during processing. ---&gt; 
  System.Runtime.InteropServices.COMException (0x88982F05): 
  Exception from HRESULT: 0x88982F05
  --- End of inner exception stack trace ---
  at System.Windows.Media.Imaging.BitmapMetadata.GetQuery(String query)
  at MyProject.ImageRecord..ctor(String file)
  in C:\MyProject\ImageRecord.cs:line 93
  The image data generated an overflow during processing.
  </code></pre>
  
  <p>Edit:</p>
  
  <p>The <code>exiv2</code> tool reports:</p>
  
  <pre><code>Error: Invalid Photoshop IRB data size 6372
  </code></pre>