BATIK-966 still perisits

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

BATIK-966 still perisits

Jan Hill

Hello mailinglist,

thats my frist post here, i am not a native speaker, if I make a mistake, please give me a hint.

First thanks for batik :-)

I run in the same problem which is described here:

https://issues.apache.org/jira/browse/BATIK-966

I am sure there is am bug, if the base64 string/stream has whitespaces ( SPACE; LF; CRLF; CR).

If you handle base64 strings you have to ignore whitespaces.

See below. Is there a chance to get them fixed? Or for wich class should this fix developed?

regards

Jan



Caused by: org.apache.batik.transcoder.TranscoderException: null

Enclosed Exception:

:0

The URI <a class="moz-txt-link-rfc2396E" href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ.....RRQAUUUUAFFFFABRRRQB//9k=">"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ.....RRQAUUUUAFFFFABRRRQB/ /9k= "

on element <image> can't be opened because:

JPEG URL is corrupt or unsupported variant

         at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:226)

         at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:92)

         at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)

         at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)

         at de.bdr.goid.idms.data.prepress.eprint.BatikPrepress$BatikPrintable.producePNGTo(BatikPrepress.java:163)

         ... 118 common frames omitted

Caused by: org.apache.batik.bridge.BridgeException: :0

The URI <a class="moz-txt-link-rfc2396E" href="data:image/jpeg;base64,/9j/4AAQSkZJRgAB.....AFFFFABRRRQB//9k=">"data:image/jpeg;base64,/9j/4AAQSkZJRgAB.....AFFFFABRRRQB/ /9k= "

on element <image> can't be opened because:

JPEG URL is corrupt or unsupported variant

         at org.apache.batik.bridge.UserAgentAdapter.getBrokenLinkDocument(UserAgentAdapter.java:448)

         at org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(SVGImageElementBridge.java:641)

         at org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(SVGImageElementBridge.java:231)

         at org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(SVGImageElementBridge.java:179)

         at org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(SVGImageElementBridge.java:121)

         at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:213)

         at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)

         at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)

         at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:208)

         ... 122 common frames omitted