Hi!

> I am trying to write a servlet that would stream a wave file to the
browser.
[...]
>             while(fs.read(cont)!=-1)
>             {
>                 System.out.println("Writing Chunk");
>                 out.write(cont);
>             }
[...]
>             out.flush();
>             out.close();


I think the problem might be that by calling out.flush() after your
while-loop you write out everything in one big chunk, so you need to call
out.flush() within your while.

-mw

___________________________________________________________________________
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

Reply via email to