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.
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