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!
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!
The RMS package documentation ( http://java.sun.com/javame/reference...e-summary.html ) has a nice example of working with the RMS data.
However, while you can extract byte array data from the RMS, you'll have to take care about the SQL or MS Access formats by yourself. I mean you'll have to convert extracted byte arrays into strings (or integers, longs, etc.) and put them into the text file on the phone's internal- or card-memory. Later you'll be able either access created text file through the PC Suite or send it over network to the server.
I think these threads and resources might be useful for you:
How to create text file by J2ME? http://discussion.forum.nokia.com/fo...ad.php?t=51938
Reading Text Files in MIDP: http://developers.sun.com/techtopics...questions/res/
Fill a list from the RMS: http://www.microjava.com/developer/f...ontent_id=1622
Using the RMS database: http://www.microjava.com/developer/f...ontent_id=1653
Also, take a look at the PC Suite Connectivity API 1.1: http://www.forum.nokia.com/info/sw.n...y_API_1_1.html
It's up to the architecture which one of the solutions you'll take in use, but if some heavy processings (formatting, convertions, etc.) should be done on the RMS data, it's rather a better task for PC than for a Midlet. I mean you can simply extract byte arrays from the RMS and put them directly into a file. Later you'll be able to access created file by the Connectivity API, and transfer to the PC. And I guess the PC is a better place for data processing and SQL or MS Access format convertions.