Thanks. In the end I did it with a servlet as you suggested... still ideally the JSP container should allow both output modes...
On Nov 18, 3:16 pm, Gaurav Vaish <[email protected]> wrote: > Why do you need a JSP? Why not move to a servlet? Well, if you need a > ".jsp" at the end, you can always do a servlet-mapping to "/ > something.jsp" ;) > Check if the JSP has any whitespaces (outside <% - %>). > > On a serious note, I would personally recommend writing the "download" > stuff as a "download servlet" rather than a "download JSP"... and > doing that should be pretty straight-forward. > > Furthermore (just an addition for download), you may want to add a > header "Content-Disposition: attachment; filename=filename.mp3". > > -- > Happy Hacking, > Gaurav Vaishwww.mastergaurav.com > > On Nov 17, 6:33 pm, ZS <[email protected]> wrote: > > > > > > > > > I have a small mp3 which I want to return from a JSP > > > I use response.getOutputStream().write() but unfortunately it seems > > that the container is later calling response.getWriter() so I get > > java.lang.IllegalStateException: STREAM > > > Any ideas how to allow response.getOutputStream() in a GAE JSP or > > alternatively how to write binary data with response.getWriter() > > > Thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
