Thomas DeWeese wrote:
>> What are you passing into the rasterizer?
>> A URL or an input Stream?
rmpat77 wrote:
> TranscoderInput input = new TranscoderInput(new
> StringReader(svgString));
So this is passing in a Reader (essentially a text version of
an InputStream). As I think you should be able to see there
is no way to know what should be used as the baseURL to resolve
relative URLS with (so it can't find your images).
What you want to do is add:
input.setURI("<some URI that makes sense>");
before calling:
t.transcode(input, output);
The 'best' thing would probably be to use a 'file:' url that
points to an appropriate location in the servers file system
(this has some maintenance issues with it, but will be fastest since
it would then access the files directly). The other option
is to use the URI of the servlet (which I'm sure you can get),
this is in many ways cleaner but means that Batik will fetch the
images over http or the like.
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/