Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

output file......audio??

 
Suka Hati
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic