• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get the record from RMS and then insert into pc?

 
Jeru Liu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone who can give some suggestion?
example code is apprecialble,thanks u all.
 
Jeru Liu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean there are two steps,
1. fetch the recrod from the RMS on hand-held device
(this one maybe esay)
2. sending out the record to the server(maybe through gateway)
(The problem is here)
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only portable way to do it is to send the contents of the byte array fetched from the RMS to a servlet using HTTP and then in the servlet you store it on the server. On Palm devices a further non-portable, unsupported option is to write a conduit that syncs up the RMS database, but I wouldn't recommend that approach unless you're willing to restrict yourself to the Palm.
For info on how to get things out of RMS and how to send it to a server using HTTP, see my J2ME Tech Tips, which can be found at http://www.j2medeveloper.com/techtips/index.html.

------------------
Eric Giguere
author/co-author of:
Mobile Information Device Profile for Java 2 Micro Edition: Professional Developer's Guide
Java 2 Micro Edition: Professional Developer's Guide
PalmTM Database Programming: The Complete Developer's Guide
 
Jeru Liu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,
Thanks for your good answer,I find one tutorial you wrote named
"Client-Server Communication over HTTP using MIDP and Servlets"
I think it's the right thing i want,right? ^_^
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic