Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 808059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:30:12+00:00 2026-05-15T00:30:12+00:00

I need to cache images locally and was thinking about saving them as SerializableDictionary

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:30:13+00:00Added an answer on May 15, 2026 at 12:30 am

    UIImage and CGIMage don’t allow easy access to their data. So, it is pretty difficult to serialize image in a XML document.

    You can use the following solution:

    • Retrieve the image from the network and store them in the user’s document folder.
    • Map the URL of the image to the local path of the image in a Dictionary.
    • Use the Dictionary as the cache index to access the images.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a cache that responds to memory pressure like the one build-into ASP.NET.
I need a way for cache images and html files in PhoneGap from my
In the project I need to cache the database data fetched from each request.So
I'm moving away from Serializable objects (need to cache and move things around -
I'm developing an app that needs to cache some images from the web the
I am thinking about how to ideally implement a cache layer in my Android
I'm using this code to preload all the images I need var cache =
I need to occasionaly create images with rmagick in a cache dir. To then
I have an app that will need to cache some images. I have read
I'm working on an image cache on iOS. Images are downloaded from URL and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.