Hi, this is partially a Java question and partially a Tomcat
question. I looked through "Java Servlet Programming" and some other
books and I couldn't find a good answer.
I am writing a program which uses Jmagick to generate some images
which will be sent back to the client with a servlet. In the book, it
says the way to do this is to create a BufferedOutputStream from the
response.getOutputStream(); and then do this:
byte[] buffer = new byte[4096];
int size;
size = bufferInputStream.read(buffer);
while(size != -1) { ...
You get the idea. Is there a Java class that does this loop for me,
so I can just connect the Input and the Output streams and it will
handle it? It seems like it would be a pretty logical class to have,
but I can't find anything that does that.
Thanks!
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>