Hi,

If org.apache.poi.hslf.model.TestBackground.testBackgroundPicture is modified to write to a file, instead of a byte array:
        //serialize and read again
        // ByteArrayOutputStream out = new ByteArrayOutputStream();
FileOutputStream out = new FileOutputStream( "C:\\Temp\\TestBackground.ppt" );
        ppt.write(out);
        out.close();

// ppt = new SlideShow(new HSLFSlideShow(new ByteArrayInputStream(out.toByteArray()))); ppt = new SlideShow(new HSLFSlideShow(new FileInputStream( "C:\\Temp\\TestBackground.ppt" )));
        Slide[] slides = ppt.getSlides();

The resultant PPT file does not have any images in it when loaded in PowerPoint (just disappointing red crosses and unhelpful error messages).
The test itself passes, so it looks like the test is invalid/incomplete.

Bug 46288 looks relevant, but is ancient.

Anyone any idea what's wrong?

Thanks

Jim


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to