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 can store image and text in rms seperately but not together Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "can store image and text in rms seperately but not together" Watch "can store image and text in rms seperately but not together" New topic
Author

can store image and text in rms seperately but not together

Leo Max
Ranch Hand

Joined: Sep 27, 2009
Posts: 36
http://mycapp.clanteam.com/src.zip

The zip file has 3 files.
TextOnly shows the code to storing textfields like name age number and so on
ImageOnly shows the code to storing images. I'm using netbeans
Midlet is an attempt to store both types in the same RMS.

When you run Midlet, it'll create a recordstore and insert 3 records. Each record is composed of several strings and the locaiton of a picture ie /pic.JPG which I've added to the resources folder. I'm using netbeans. After the recordstore is created, the names of every record (composed of first and last names) appear in a list on the screen. I simply choose one of the names then click MENU then OPEN and it will take me to a new form where I can view that person's picture.

I can't get it to work. I attempted combining both TxtOnly and ImageOnly but failed. I just don't see where it's going out.

Thanks in advance.
Gopinath Karyadath
Ranch Hand

Joined: Oct 14, 2009
Posts: 87
Hi

use png instead of JPG


Regards
Leo Max
Ranch Hand

Joined: Sep 27, 2009
Posts: 36
I'm sorry for mix up. I had posted a different version of the midlets I created. Yes, after adding some images, RMSMidlet works. It shows the pics and everything.

correctsrcfiles
Like I said in my first post, images only works and txt only works. But when I try to store the image and the txtfields in the same RMS i fail.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can store image and text in rms seperately but not together
 
Similar Threads
Execute code at installation
Doubt in RecordStore(RMS)
create login form in MIDlet
recordstore file's location in PC
RMS problems