How to play an audio if it is stored in DB

22 views
Skip to first unread message

gwtrunz

unread,
Mar 21, 2014, 3:32:08 AM3/21/14
to gwt-v...@googlegroups.com
Hi there,
 
I tried to play an audio which is static and resides inside my war file and it played well.
I used the following code :
SoundController soundController = new SoundController();
soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,"http/mysoundapp/emotion.mp3");
 
But I dont want to always keep the audio file in war , rather I want it to be dynamic and stored in DB.
Is there any way to play the audio without giving the URL ;say getting the byte stream from server and then play it.
 
 
Thanks
Reply all
Reply to author
Forward
0 new messages