permaculture playing cards
The moose likes Servlets and the fly likes play a voice file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "play a voice file" Watch "play a voice file" New topic

play a voice file

lavanya Ananth
Ranch Hand

Joined: Apr 04, 2005
Posts: 40
Hi ,

I am running on a tight deadline and i would appreciate a quick repsonse to my problem here..

A voice file is stored as a BLOB in my oracle database.
In my application , i retrieve this and store it in a byte array. I need to to display a link on a browser and when clicked the voice file should be played.

I tried and i am getting an unknown error from windows media player.
I set the content type as audio/x-wav and file type as 'wav'.

Please help me here.

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Are you able to play it from your page if it's a static file on the server?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
Sometimes setting the content-length helps with plug-ins.
I agree. Here's the link:
subject: play a voice file
It's not a secret anymore!