You Are Here:

Community: Developer Discussion Boards

#1 Old read image as byte array and save that in to RMS. - 2004-01-24, 17:00

Join Date: Sep 2003
Posts: 8
Location: internet
Send a message via ICQ to ar_kan
ar_kan
Offline
Registered User
Hi,
I need a help :
how can I store all my Images in one file that stores by rms, and how can I get them from it?
So, generally I wonna save all ".png" in one File and load them separatly while a game.
Do you have any sugesstions?
Thnx for your answer.
Reply With Quote

#2 Old 2004-01-24, 21:42

Join Date: Aug 2003
Posts: 232
Location: uk
Send a message via ICQ to alex_crowther
alex_crowther's Avatar
alex_crowther
Offline
Regular Contributor
The RMS file for each midlet can be found in (assuming a default install):

C:\Nokia\Devices\Nokia_7210_MIDP_SDK_v1_0\bin\jam-apps

Example

C:\Nokia\Devices\Nokia_7210_MIDP_SDK_v1_0\bin\jam-apps\myMidlet\RMS

However, you would need to write a custom external application
to parse the RMS file itself, I don't imagine its format is published
anywhere either.

Alex
Reply With Quote

#3 Old 2004-01-25, 11:29

Join Date: Sep 2003
Posts: 8
Location: internet
Send a message via ICQ to ar_kan
ar_kan
Offline
Registered User
thanks for your reply.
I'll try to find out another way.

If you know about some links where can i get more informations how to store more
pictures in one extern file , post it here, please.

Thx.
Reply With Quote

#4 Old 2004-01-25, 14:55

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
There is a discussion about options for storing images in JARs at http://discussion.forum.nokia.com/fo...threadid=28508 that you might find interesting.

Graham.
Reply With Quote

#5 Old 2004-01-26, 13:32

Join Date: Sep 2003
Posts: 8
Location: internet
Send a message via ICQ to ar_kan
ar_kan
Offline
Registered User
Thanks Graham for very helpfull reply.
Reply With Quote

#6 Old 2004-01-26, 14:45

Join Date: Mar 2003
Posts: 118
Location: Rotterdam, Holland
remonvv
Offline
Regular Contributor
If i understand your question correctly, all you have to do is read the image files as normal binary files, store that binary data in an RMS record. Then, when you need them, retrieve that binary data and pass it to Image.createImage(byte[] imageData, int imageOffset, int imageLength) to turn it into an image again. Hope this is helpful.

Remon van Vliet
Ex Machina
remon@exmachina.nl
Reply With Quote

#7 Old Retreving Graphics from Web Question - 2004-02-22, 23:11

Join Date: Feb 2004
Posts: 6
kralvarado
Offline
Registered User
I've used an HttpConnection and a DataInputStream to read a PNG image into a byte[] . Using that byte array, I called Image.createImage( byte[] imageData, int imageOffset, int imageLength ). As I understand it, you can take that same byteArray and store that in a record set to be recalled later.

I've noticed that when I try this method of downloading on a Nokia 3595 that the image is black & white. Using the same MIDLet on a Nokia 7210 the image appears in color.

Can anyone let me know what causes the 3959 to display the image in B&W, and how to get it into color.

Thanks.

Kevin -KV- Alvarado
kv@pixel-cube.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ