| Reply | « Previous Thread | Next Thread » |
|
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. |
|
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 |
| alex_crowther |
| View Public Profile |
| Find all posts by alex_crowther |
|
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. |
|
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. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
Thanks Graham for very helpfull reply.
|
|
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 |
|
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 |
| kralvarado |
| View Public Profile |
| Find all posts by kralvarado |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|