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
PIN: N/A
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?
Offline  
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
Default

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.
Offline  
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

NEW IN BOX ASCO RED HAT 3 WAY SOLENOID VALVE SK-1955-50 SK4891 T436852 (141)
$34.0
NEW IN BOX ASCO RED HAT 3 WAY SOLENOID VALVE SK-1955-50 SK4891 T436852 (141) pictureNEW IN BOX ASCO RED HAT 3 WAY SOLENOID VALVE SK-1955-49 11AG18003003 (131)
$112.0
NEW IN BOX ASCO RED HAT 3 WAY SOLENOID VALVE SK-1955-49 11AG18003003 (131) pictureSporlan Controls 381054 B19/E19 Solenoid Repair Kit
$69.99
Sporlan Controls 381054 B19/E19 Solenoid Repair Kit pictureParker Solenoid Complete Valve 06F23C6440ACFPH01 2way 3/8 NPT 150PSI 4244-1012
$250.0
Parker Solenoid Complete Valve 06F23C6440ACFPH01 2way 3/8 NPT  150PSI 4244-1012 pictureASCO SOLENOID VALVE 8320G013
$39.99
ASCO SOLENOID VALVE 8320G013 picture






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