https://bz.apache.org/bugzilla/show_bug.cgi?id=65320

            Bug ID: 65320
           Summary: XWPFDocument cannot read data: embedded images
           Product: POI
           Version: 5.0.0-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

The loading of a document that contains images of type 'image/png;base64'
fails. 

Caused by: org.apache.poi.openxml4j.exceptions.InvalidFormatException: The
specified content type 'image/png;base64' is not compliant with RFC 2616:
malformed content type.
        at
org.apache.poi.openxml4j.opc.internal.ContentType.<init>(ContentType.java:154)
        at
org.apache.poi.openxml4j.opc.ZipPackagePart.<init>(ZipPackagePart.java:83)
        at
org.apache.poi.openxml4j.opc.ZipPackage$EntryTriple.register(ZipPackage.java:334)
        at
org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:291)
        at
org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:742)
        at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:315)
        at org.apache.poi.ooxml.util.PackageHelper.open(PackageHelper.java:47)

There is a stripped down example at https://github.com/Portree-Kid/testdoc

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to