How to read a RMS file

Is it possible to read a RMS file from my pc written by a Midlet application?I need to find a way to read the rms file and convert it to any format supported by SQL or MS Access.Thnx!
[204 byte] By [DNL21a] at [2007-11-27 6:21:05]
# 1
The RMS wtk emulator file are in binary format..It is possible to read rms by a midlet that running on the emulator and then write it on a text file by using jsr-75 emulation.Then import text(csv!?!) file on db.
PeppeMEa at 2007-7-12 17:37:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

I磛e tried this way , however I couldn磘 read rms by a midlet on the emulator. When the midlets tries to access to the rms file throws an exception (with the rms file created by the emulator itself it doesn磘).

I've open both rms files in notepad: one created by the cell phone and the other created by the wtk emulator, and I磛e noticed they haven磘 the same structure. So it wasn磘 possible to me to read a rms file on the wtk emulator.

Thanks anyway.

DNL21a at 2007-7-12 17:37:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

Rms file structure depend on device.

You must change the point of view.

Don't read rms file by read the file structure but by using the RMS class in j2me.

For example If I have a device that store(in rms) a contacts list by j2me application.

Then I would to store this contact list in mysql or access db I must read the contact list by rms api, store the data in j2me structure (array for example) and then transfer it by http, socket, bluetooth etc in a server that store the data in db.

Another solution is like the first post: Read the rms contents (by RMS api) and store it in a text file(you can do it only in a device with JSR-75 File api). Then import txt file in db.

Don't try to read rms file generated by device in emulator or viceversa is impossible.

http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_tipcode103.jsp

http://www.java2s.com/Code/Java/J2ME/Readandwritetotherecordstore.htm

PeppeMEa at 2007-7-12 17:37:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
and this article is also a very good article... http://www-128.ibm.com/developerworks/library/j-j2me3/
suparenoa at 2007-7-12 17:37:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...