At 01:17 AM 1/11/2002 -0000, you wrote:
>
>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!


I've responded before to this list being mildly off-base, but this article
got me started in the right direction recently on server side jpeg image
generation/presentation.
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html

The examples are simplistic, but the basic concepts work. 


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to