How to get the record from RMS and then insert into pc?
Jeru Liu
Greenhorn
Joined: Aug 14, 2001
Posts: 23
posted
0
Anyone who can give some suggestion? example code is apprecialble,thanks u all.
Jeru Liu
Greenhorn
Joined: Aug 14, 2001
Posts: 23
posted
0
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
Joined: Oct 25, 2000
Posts: 170
posted
0
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.
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? ^_^
subject: How to get the record from RMS and then insert into pc?