if (escherRecord instanceof EscherBSERecord) {
EscherBSERecord bse = (EscherBSERecord) escherRecord;
EscherBlipRecord blip = bse.getBlipRecord();
if (blip != null)
{
pictures.add(new Picture(blip));
}
else if ( bse.getOffset() > 0 )
{
try
{
// Blip stored in delay stream, which in a word doc, is
// the main stream
EscherRecordFactory recordFactory = new DefaultEscherRecordFactory();
EscherRecord record = recordFactory.createRecord(
_mainStream, bse.getOffset() );
if ( record instanceof EscherBlipRecord )
{
record.fillFields( _mainStream, bse.getOffset(),
recordFactory );
blip = (EscherBlipRecord) record;
pictures.add( new Picture( blip ) );
}
}
catch ( Exception exc )
{
logger.log(