File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "play a voice file" Watch "play a voice file" New topic
Author

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.

Thanks
Lavanya
Ben Souther
Sheriff

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
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Sometimes setting the content-length helps with plug-ins.
Bill
 
wood burning stoves
 
subject: play a voice file
 
Similar Threads
Prevent Downloading files
Read and play a .wav file!!!!!!!
Getting a certain directory
Wav play......!!!!!
Applet wav to mp3 conversion - tritonus plugins, lame dlls