BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 08-17-2009, 10:34 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Jul 2009
Model: 7100T
Carrier: Sprint
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help to persist EncodedImage

Please Login to Remove!

I created class:
class PersistableStore implemented Persistable{
private Hashtable encodedImages;

Hashtable keeps images and I am peristing PersistableStore object. But when I do it exception is thrown saing that EncodedImage is not persistable. How can I make it persistable?
Old 08-17-2009, 12:33 PM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts

You have to subclass from EncodedImage and implement Persistable as you did for PersistableStore. Any object you put in a persistable object must also implement persistable.
My other Blackberry is a PlayBook.

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.