My need is to get a picture data as bytes, then it's anchor details and finaly display the result on screen at target position and size for my users...
The API shows we can get a list of all pictures through workbook object like this:
List<HSSFPictureData> picturesData = workbook.getAllPictures();
and also we are able to fetch all anchors details (see HSSFClientAnchor details here).
Problem is HSSFPicture.getPictureIndex() refered by an anchor does not match HSSFPictureData collection index of getAllPictures() method above...
...now the question is: how to map HSSFClientAnchor instances to specific HSSFPictureData instances or the opposite?