This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Servlets and the fly likes output file......audio?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "output file......audio??" Watch "output file......audio??" New topic
Author

output file......audio??

Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
i need to give an audio output from my servlet....i have an application that will produce the sound in wave format.....when i use

resp.setContentType("audio/wav");

it will open the real one player and gives me error

i dont know what the problem
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12912
    
    5
will open the real one player and gives me error

It would have been more helpful if you had included the text of the error.
Without any more information, I can only guess that you need to include the content-length as well as the content type. Also, are you doing output with an OutputStream or a Writer? Binary data must use OutputStream.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: output file......audio??