Here's an old mail (see below) on the topic of writning out binary content, with a good reference.
BTW are gif's, tiff's etc in general transmitted in HTTP as binary? Or are they MIME encoded somehow to 7-bit ascii or whatever, I assume the HTTP headers are always text, so it seems to me to be a bit strange that after that raw binary would then be appended.... Cheers Adrian > -----Original Message----- > From: Mark Lines-Davies [SMTP:[EMAIL PROTECTED]] > Sent: 09 May 2002 12:22 > To: [EMAIL PROTECTED] > Subject: Re: R: What are the advantages of the servlets and JSP > pages? > > To quote from "Professional JSP, 2nd edition", published by Wrox: > > "Returning binary content from JSP can be a problem. The reason is that > the > implicit out object is an instance of JspWriter, and JspWriter converts > the > internal Unicode representation of the data into a character set...JSPs > should not be used to send binary content." > > Although it's not cheap, I recommend this book. > > Mark > > -----Original Message----- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Luca Ventura > Sent: 09 May 2002 10:53 > To: [EMAIL PROTECTED] > Subject: R: R: What are the advantages of the servlets and JSP pages? > > > Thanks a lot. > > A question: why isn't possible return binary files from JSP? :-) > > thanks, > Luca > -- It is the strict policy of Truworths that its e-mail facility and all e-mail communications emanating therefrom, should be utilised for business purposes only and should conform to high professional and business standards. Truworths has stipulated certain regulations in terms whereof strict guidelines relating to the use and content of e-mail communications are laid down. The use of the Truworths e-mail facility is not permitted for the distribution of chain letters or offensive mail of any nature whatsoever. Truworths hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted. Truworths Limited accepts no liability for any consequences arising from or as a result of reliance on this message unless it is in respect of bona fide Truworths business for which proper authorisation has been granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to notify the Truworths e-mail administrator ([EMAIL PROTECTED]) immediately in order that appropriate action can be taken against the individual concerned. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
