hi Thaiyalnayagi,

[EMAIL PROTECTED] wrote:


I have to create an on the fly SVG file,PNG using Batik and send it
directly to client using servlet. I am using Tomcat server. I tried to use
ServletOutputStream to stream the Svg or png data. I have set the content
type(MINE type) as "image/svg-xml" ("image/png" for png image).

Not that I think this has anything to do with your problems, but the proper mime type for SVG is "image/svg+xml" (I'll let Jim insert his rant about how this only theoretical :).

The problem is, i am getting the following error. Please help me to find out a
solution.Thanks in advance.

Error:
java.lang.IllegalStateException
      at
org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)

So I know just about zero about Servlets - and since I don't see _any_ Batik code in this stack trace I would suggest asking this question on a Tomcat list or something (probably with a title like "Why can't I get a ServletOutputStream").

Good luck!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to