You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Gregory Stafford <gs...@constellagroup.com> on 2003/09/18 17:46:12 UTC
TranscoderInput Woes
It seems like I'm blowing up the transcoder. I'm using the transcoder to
translate an SVG (that works) to a JPG with code like this:
-----
TranscoderInput input = new TranscoderInput(theURL);
TranscoderOutput output = new TranscoderOutput(ostream);
try {
t.transcode(input, output);
}
catch (Exception e) {
System.out.println("SVG2JPG: Transcoder fails:" + e);
}
-------
It looks pretty basic and I've used it before. ostream is http repsonse
stream. theURL may be causing me problems because it may be too long. Is
there a length limit to theURL that I should be aware of?
here's an example of what theURL is set to:
http://localhost/dtpstandard/servlet/MeanGraph?searchtype=NSC&searchlist=740
&outputformat=HTML&outputmedium=page&chemnameboolean=AND&debugswitch=false&h
ighconc=-5.0&assaytype=&endpt=GI50&SVGonly="Y"&testshortname="Cancer+Screen+
10/2002+Data"
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: TranscoderInput Woes
Posted by Thomas DeWeese <Th...@Kodak.com>.
Gregory Stafford wrote:
> It seems like I'm blowing up the transcoder. I'm using the transcoder to
> translate an SVG (that works) to a JPG with code like this:
>
> -----
> TranscoderInput input = new TranscoderInput(theURL);
> TranscoderOutput output = new TranscoderOutput(ostream);
>
> try {
> t.transcode(input, output);
> }
> catch (Exception e) {
> System.out.println("SVG2JPG: Transcoder fails:" + e);
> }
> -------
> It looks pretty basic and I've used it before. ostream is http repsonse
> stream. theURL may be causing me problems because it may be too long. Is
> there a length limit to theURL that I should be aware of?
2 billion characters as far as I know :)
Can you print the stack trace for 'e' and send that?
Also an example of SVG that fails might help.
>
> here's an example of what theURL is set to:
>
> http://localhost/dtpstandard/servlet/MeanGraph?searchtype=NSC&searchlist=740
> &outputformat=HTML&outputmedium=page&chemnameboolean=AND&debugswitch=false&h
> ighconc=-5.0&assaytype=&endpt=GI50&SVGonly="Y"&testshortname="Cancer+Screen+
> 10/2002+Data"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org