can we save the bitmap to persistent store?

City previous forums:

Smiley

Messages: 29
From: Canada
Join date: May 2008

can we save the bitmap to persistent store?
Posted the: July 14, 2008 12:41
Response
I am trying to save a bitmap in Bank persistence and get an error msg saying Bitmap is not persistent.

is it possible to save a bitmap?

Thank you

Yes it is possible.  You can use the Bitmap.getARGB method to get an array of bytes of the Bitmap image.  Then store its contents in a ByteVector.

I am aware of the problem and would use a solution like that set up by MiuTunes.  Basically, generating thumbnails on the front and store them on the SD card.

As neil says, there is a small performance lag, compared, but I find personally unacceptable in this application.  Don't know what you develop, and perhaps there are moments where in memory is better.  I'm also assuming (wrongly?) that you were going to leave them in the persistent store after your application ends.  Anyway, Neil knows more about what I do.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for