Well, if you look at the original examples code, these two lines are the key
I think;
HSSFObjectData obj : workbook.getAllEmbeddedObjects()
which is actually a shorter way of saying this;
HSSFObjectData[] objs - workbook.getAllEmbeddedObjects();
for(HSSFObjectData obj : objs) {
...
}
That retrieves all of the embedded onjects as instances of the
HSSFObjectData class.
Then this line
byte[] objectData = obj.getObjectData();
allows you to get at the data of each embeded object. At it's most basic,
all I thin you need to so is this;
1. Get the ambedded objects
2. Look at their data and so
HSSFObjectData[] objs - workbook.getAllEmbeddedObjects();
for(HSSFObjectData obj : objs) {
byte[] objectData = obj.getObjectData();
byte firstByte = objectData[0];
}
You do not need any of the other code IMO - unless you are doing something
more involved. Give those four lines a try and see what happens.
Yours
Mark B
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/Extracting-a-byte-of-a-record-tp5437114p5443859.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]