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

help regarding mp3 file download in j2me

 
laxmi laxmi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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){}
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
"Laxmi"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
OK, it appears that you created two accounts. I can delete this account for you if you wish. Just post your response in your other duplicate thread, since I am going to close this thread because it is an exact duplicate of your other account's post.

Please refrain from duplicate posting.

Thanks

Mark
 
    Bookmark Topic Watch Topic
  • New Topic