Hi,
you'll need to a DrawingPatriarch, something like this to read the location:
XSSFWorkbook wb = new XSSFWorkbook("test.xlsx");
XSSFDrawing dp = wb.getSheetAt(0).createDrawingPatriarch();
List<XSSFShape> pics = dp.getShapes();
for (XSSFShape p : pics) {
if (p instanceof XSSFPicture) {
XSSFClientAnchor anchor = ((XSSFPicture)p).getClientAnchor();
}
}
and to set the location in the destination file, look at
http://poi.apache.org/spreadsheet/quick-guide.html#Images
Of course you'll need to copy the image data itself too, but as you wrote,
you have already the image data.
Best wishes,
Andi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]