×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    12

    Red face 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!

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    Re: How to read a RMS file

    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

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    12

    Re: How to read a RMS file

    thanks for the information!

  4. #4
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    Re: How to read a RMS file

    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.

Similar Threads

  1. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  2. DRM PIP File - unable to read file
    By solo95 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2007-03-21, 14:26
  3. How to read binary large binary file from...
    By gaudeamus1313 in forum Mobile Java General
    Replies: 5
    Last Post: 2007-03-20, 19:17
  4. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×