Possible Duplicate:
WPF BitmapImage Serialization/Deserialization
I have class I have to seriazlize this class
class X{
....
public BitmapImage SomeImage{ get; set; }
....
}
That's my logic for serializing object
XmlSerializer serializer = new XmlSerializer(typeof(X));
serializer.Serialize(way, person);
I'm using XmlIgnore attribute that not serialize image.But i Have to serialize picture.How I have to do it?Please help me.