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

Tektronix TM502A Power Supply w Tektronix AM503B Current Probe Amplifier
$599.99
Tektronix TM502A Power Supply w Tektronix AM503B Current Probe Amplifier pictureEmCom AM220 Amplified Speaker w Power Supply
$27.99
EmCom AM220 Amplified Speaker w Power Supply pictureMitsubishi MR-J4-60B4-RJ 600W Servo Drive Amplifier
$75.0
Mitsubishi MR-J4-60B4-RJ 600W Servo Drive Amplifier picture10,000uF 100V Sangamd Screw Terminal Capacitors For Amplifiers BGW Crown Peavey
$11.0
10,000uF 100V Sangamd Screw Terminal Capacitors For Amplifiers BGW Crown Peavey  pictureBAUMULLER BUM61-VC-AC-1069 BUM61VCAC1069 SERVO DRIVE BUM61-40/60-54-B-M-13
$1999.99
BAUMULLER BUM61-VC-AC-1069 BUM61VCAC1069 SERVO DRIVE BUM61-40/60-54-B-M-13 picture






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