You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/03/27 09:42:19 UTC
DO NOT REPLY [Bug 46476] Scripting won't work if document doesn't
have a URI
https://issues.apache.org/bugzilla/show_bug.cgi?id=46476
--- Comment #1 from Maxim Polshcha <ma...@sterch.net> 2009-03-27 01:42:17 PST ---
I had the same problem with transcoding data not from file or url but from
stream:
...
input = new TranscoderInput(new ByteArrayInputStream(bfs));
trans.transcode(input, output);
...
throws an exception when input SVG document contains scripting. Otherwise all
works fine.
It is normal when document have no URI.
My workaround is:
...
input = new TranscoderInput(new ByteArrayInputStream(bfs));
trans.transcode(input, output);
input.setURI("http://");
...
But problem must be fixed in org.apache.batik.script.InterpreterPool in
createInterpreter. MalformedURLException have to be processed in other way :-)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org