At 12:41 �� 23/7/2000 -0700, you wrote:
>Hi everybody,
> Sorry for asking this basic question, but
>I would like to know the difference between
>getWriter() and getOutputStream() methods of
>HTTPServletResponse Object. Can anybody please clarify
>this question or provide me with any resources.
I don't what to be unpolite, but I'm wondering if you have read at least
the documentation which are part of the JSDK ?
Anyway, the following quote is ripped from the javadoc (ServletResponse
Interface):
To send binary data in a MIME body response, use the ServletOutputStream
returned by getOutputStream(). To send character data, use the PrintWriter
object returned by getWriter(). To mix binary and text data, for example,
to create a multipart response, use a ServletOutputStream and manage the
character sections manually.
>Thanking you in advance,
>
>Sri
Regards
Filippos Slavik
################################################################
Filippos Slavik
Forthnet R&D, Hrakleio, Greece
e-mail : [EMAIL PROTECTED]
phone : (+3) 081 391230
################################################################
"The software said 'runs on Win95 or better,' so I installed it
on Linux..."
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html