BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 08-17-2009, 11: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, 01: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.
Closed Thread

Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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