Can a J2ME application download a mobile content to the handset?

Hi, I'm a newbie here.

I've a question about whether the J2ME application can be implemented to trigger a Http download via OTA to download a mobile content. let's say using the J2ME application, the user can actually download a MP3 by selecting the option on the application screen, from the content server to the user handset's folder.

I know that another alternative way is to use platform request to trigger the handset's wap browser to do the downloading, however I'd like the user to do all the things with only one J2ME application.

Please help, any information is very much appreciated.

[625 byte] By [JunJiea] at [2007-11-27 10:35:03]
# 1

Hi JunJie

I'm also new so don't expect any code snippets from me. But from what I've read both on the forums here and elsewhere --

Yes, your midlet should be able to read in a mp3 file from a web server, the best wy to find out is just to TRY but your MIDlet will be able to access the phone's file system only if it's digitally signed. To the best of my knowledge, obtaining a digital signature would cost you at least US$ 199.

rms has a limit of 200 kB per application, so you can't save it there either.

One way out might be to download the file and then transfer it to a listening PC application via bluetooth.

Don't know whether you would get an 'Out of memory' error if the mp3 is fairly large.

Wish you luck, Darryl

Darryl.Burkea at 2007-7-28 18:32:46 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Hi Darryl ,

Thank you very much for the reply.

You mentioned something about digital signature, is it regarding to the phone file system or the MP3 content itself? If it's regarding to the later one, I've no worries about it since I'm doing it for content supplier company, which already have their contents digitally signed.

Now I'm much more concerned about how do I TRY to work it out,..:p kindly give me a hint?

Once again many thanks to your valuable information and looking forward to your reply.

JunJiea at 2007-7-28 18:32:46 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

JunJie

Not the MP3, it's your j2me app that'll need a digital signature to ensure access to the mobile phone's filesystem. The signature resides in the jad / jar files i.e. you have to attach a digital signature before you build the project.

If your MIDlet suite is unsigned, you may be able to write to the filesystem but not read back what you have written. Or you may not be able to even write. I'm not sure.

Go through the available docs, there are plenty of examples of all kinds, you only have to search for them.

Wish you luck, Darryl

Darryl.Burkea at 2007-7-28 18:32:46 > top of Java-index,Java Mobility Forums,Java ME Technologies...