I have a class in silverlight that I would like to store to disk. It contains a couple of basic CLR objects - strings and integers, and a WPF BitmapImage.
What is the best way to store this to a file? I have tried serializing the class and dumping it to file, but BitmapImage does not support serializing.
Ideally, I want to store the bitmapimage as a physical image on disk (.png .jpg etc), and store the CLR objects in some key-value pair settings file. This is so easy in WPF, since it natively supports KVP project settings, but in Silverlight there are many more restrictions.
Any advice is much appreciated!