Forums Register Login

Storing an Image

+Pie Number of slices to send: Send
I have an image stored as an int[] array.

I want to store this image in a record store.

Will I have to convert it to a byte array? How?

I don't see any convience methods in MIDP 2.0 to do this.

I was hoping for something like:

addRecord(int[] data, int offset, int length);

Thanks,

Drew
+Pie Number of slices to send: Send
You should have used byte array at the first place, which saves you precious memory on the hand device.
+Pie Number of slices to send: Send
Heh. Not very helpful in my situation.

What if you wanted to use the getRGB() method of the Image class, do some image processing, and then store the image in a record store?

Drew
This looks like a job for .... legal tender! It says so right in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 896 times.
Similar Threads
How to get byte[] from the Image?
Changing icon images at runtime
Location Finder(Urgent)!!!
Insert Array in Array
Doubt in Sun e-practice Sample question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:07:37.