Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

downloading mp3 file using j2me

 
sankar ganesh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i'm working in j2me with WTK2.2 and i'm trying to download a mp3 file using the following code and place that mp3 file in the resource folder.But it's not working.anyone know how to rectify this please help me.
the code that i used is:
InputStream in=getClass().getResourceAsStream("/piano.mp3");
try
{
Player player=Manager.createPlayer(in,"audio/mpeg");
}catch(Exception er){}

[ June 08, 2005: Message edited by: sankar ganesh ]
[ June 08, 2005: Message edited by: sankar ganesh ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic