File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes How to get the record from RMS and then insert into pc? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "How to get the record from RMS and then insert into pc?" Watch "How to get the record from RMS and then insert into pc?" New topic
Author

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

Jeru Liu
Greenhorn

Joined: Aug 14, 2001
Posts: 23
Anyone who can give some suggestion?
example code is apprecialble,thanks u all.
Jeru Liu
Greenhorn

Joined: Aug 14, 2001
Posts: 23
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
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


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 and PalmTM Database Programming: The Complete Developer's Guide
Jeru Liu
Greenhorn

Joined: Aug 14, 2001
Posts: 23
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?
 
developer file tools