Monotouch serialize UIImage

Posted by cvista on Stack Overflow See other posts from Stack Overflow or by cvista
Published on 2010-05-09T12:08:12Z Indexed on 2010/05/09 12:18 UTC
Read the original article Hit count: 528

Filed under:
|
|

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://

© Stack Overflow or respective owner

Related posts about monotouch

Related posts about serialization