Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 742
Registered: ‎05-29-2012
My Device: see later

Download MP3

I have the link of mp3 file,  say   http://music.mp3

How can I download it into my sdcard?


Then I can play it like this, Player player =Manager.createPlayer("file:///SDCard/BlackBerry/music/songs.mp3");


But I need to implement downlaod functionality.

Please use plain text.
Posts: 16,134
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Download MP3

you download it as any other file, by opening a httpconnection and reading the inputstream.
check the httpdemo sample.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.