Re: Images and response.getOutputStream()

2007-07-03 Thread Lyallex
Ricardo What can I say ... sometimes you just get a mental block about these things I used a servlet and now I don't get any java.lang.IllegalStateExceptions when loading images Thank you for showing me the light. Regards Duncan On 7/3/07, rpr_listas <[EMAIL PROTECTED]> wrote: Hi Lyallex! Y

Re: Images and response.getOutputStream()

2007-07-03 Thread rpr_listas
Hi Lyallex! You're getting a OutputStream ftrom a JSP? If the JSP has a simple single empty line before your java code <%%>, the JSP framework get a writer before your java code is executred. This is the cause of the IllegalState Exception. The rigth way to do this is from a servlet, but if y

Images and response.getOutputStream()

2007-07-03 Thread Lyallex
Hi I'm not sure this is a Tomcat question, more likely a poor understanding of the Request/Response lifecycle on my part but I'll give it a go anyway. After agonising for days(weeks) over whether to store my images in a database or on the filesystem I opted for the database. I have everything w