I want to know how to retrieve the ORDAudio object in my servlet and play it in browser when Play button is clicked.
I am able to store audio object in to database thru my servlet...but my code written to retrive the same record and to play it, is not working. Here is my code:
OrdAudio audioObj = (OrdAudio)rs.getORAData(2, OrdAudio.getORADataFactory()); InputStream is = audioObj.getDataInStream(); AudioStream audioStream = new AudioStream(is); AudioPlayer.player.start(audioStream);
I am getting the following error: java.io.IOException: could not create audio stream from input stream
can anyone help me in solving this issue?