• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
  • Frits Walraven
  • fred rosenberger
  • salvin francis

downloading mp3 file using j2me

Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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");
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 ]
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic