public static Image GetImageFromStream( Stream stream ) { var formatter = new BinaryFormatter(); return (Image)formatter.Deserialize( stream ); }