Centrally store and update Base64 string values for use accross app
<p>I'm dealing with an app that lets users upload pictures of themselves to be used as part of a user profile, messages to others, and other places throughout the app. The backend PHP/SQL stores each picture as a Base64 string. </p>

<p>My problem is that I can't think of an efficient way to centrally store and update this information so that to don't have query the database each time I need a picture. What is the best way to download, store, and update this information? All I can think of so far is:</p>

<p>(1) Should I just make a seperate SQLite database on the phone and download all user information first, only querying the main webserver to see if it has been recently updated?</p>

<p>(2) As these are strings, I could just store Kee/Value pairs to SharedPreferences. So long as I don't create preferences who's key value is the same as the userid I should be able to create a half-assed databse this way right? (this may be a horrible idea)</p>

<p>(3) Just create a user class and create a new user object which stores all necessary information and use some kind of Array/ArrayList to keep track of entries. I could then just check to see if any of the information had been updated on the web server and, if I could identify each user again later, update their information that way. (this just seems really inefficient).</p>

<p>Any ideas?  </p>
