Hi!
im discovering batik server side and i want to create a servlet that
translate a svg existing file into to response.getoutputstream() . I have a
problem with no error msg, no exception.
here is my servlet code (with netbeans 5.5.1) :
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("image/jpeg");
JPEGTranscoder trans;
trans = new JPEGTranscoder();
trans.addTranscodingHint(JPEGTranscoder.KEY_QUALITY, new
Float(0.8));
TranscoderInput input = new TranscoderInput("C:/IRIRSSL.svg");
TranscoderOutput ouput = new
TranscoderOutput(response.getOutputStream());
try {
trans.transcode(input, ouput);
} catch (TranscoderException ex) {
ex.printStackTrace();
}
Here is the code from the jsp :
<br/>
./GenererBatik01
ok. It's my first try with batik, i'm doing something wrong but what?
the result in IE is noting : a blank image is shown.
When i'm debugging (tomcat+nb), in step by step mode, no line of code is
executed after this one :
trans = new JPEGTranscoder();
no exception seems to be launched...
do u have any idea?
thx
--
View this message in context:
http://www.nabble.com/transcoder-svg-to-jpg-in-a-servlet-%28beginner-question%29-tf3987304.html#a11321483
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]