This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final XSLFSlide graphSlide = slideShow.createSlide(layoutMap.get(graphLayout).get(0)); | |
PictureData.PictureType graphpictype = PictureData.PictureType.PNG; | |
XSLFPictureData graphidx = null; | |
try { | |
final byte[] graphPictureData; | |
try (InputStream is = new FileInputStream(graphpict)) { | |
graphPictureData = IOUtils.toByteArray(is); | |
} | |
graphidx = slideShow.addPicture(graphPictureData, graphpictype); | |
} catch (Exception e) { |
OlderNewer