Bug 44840 - HSSFObjectData: how to read the entry of an CheckBox
Summary: HSSFObjectData: how to read the entry of an CheckBox
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-FINAL
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2008-04-18 00:22 UTC by gazanfer ercan
Modified: 2008-05-23 08:56 UTC (History)
1 user (show)

excel file with an embedded object (16.50 KB, application/vnd.ms-excel)
2008-04-28 00:37 UTC, gazanfer ercan
test case (1.60 KB, text/plain)
2008-04-28 00:38 UTC, gazanfer ercan

Note You need to log in before you can comment on or make changes to this bug.
Description gazanfer ercan 2008-04-18 00:22:32 UTC
> If I call getDirectory() this throws an exception.
> java.io.FileNotFoundException: no such entry: "MBD00000000"

Your ftPictFmla references the steam with id 0:
     .streamId             = 0x00000000 (0 )
But no such stream exists in your file, which is going to be a problem.

I've taken a look at EmbeddedObjectRefSubRecord, and I'm not completely
sure it's correct. Any chance you could open a new bug on bugzilla, and
upload the problem file, so we can take a look?
Comment 1 Nick Burch 2008-04-27 11:02:22 UTC
Could you please upload the problem excel file too? We'll need to take a look in it to see exactly what your EmbeddedObjectRefSubRecord contains
Comment 2 gazanfer ercan 2008-04-28 00:37:48 UTC
Created attachment 21865 [details]
excel file with an embedded object
Comment 3 gazanfer ercan 2008-04-28 00:38:32 UTC
Created attachment 21866 [details]
test case
Comment 4 Nick Burch 2008-05-23 08:56:05 UTC
I think that in some cases, the object data is stored in the record itself, and not in another POIFS stream

I've updated HSSFObjectData, so that it will tell you if it looks like there's a directory entry or not. It will now also give you the OLE2 class name, and the data if there's no directory entry.

Hopefully that'll fix things for you.