Monotouch serialize UIImage
- by cvista
Hi
I need to cache images locally and was thinking about saving them as SerializableDictionary
SerializableDictionary is from: http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx
I was wondering if this was
a: a good way of handling caching of images (for offline mode - the data is constantly updated so pulls from the web first).
b: how can i do this?
I seem to be only left with the following xml:
<?xml version="1.0" encoding="us-ascii"?>
<dictionary>
<item>
<key>
<string>http://img.theguidestar.com/thumb/491520.png</string>
</key>
<value>
<UIImage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Handle />
<Size>
<Width>0</Width>
<Height>0</Height>
</Size>
</UIImage>
</value>
</item>
</dictionary>
Is there anything specific i should be doing to make it serialize the image itself?
w://