I have a serialized object in C# .net 4 which contains some images and strings.
What I want is send that object to web browser and deserialize it in client’s web browser.
What are the technologies that I will need? Is is possible to do this? My requirement is to save a class with images and few strings to hard disk and use it back.
Use JSON to serialize an object from server to browser. Googling for “JSON C#” will certainly give you a handful of resources and examples to transform a C# object into a JSON string.
But serializing an image won’t be very helpful: what would the browser do with such a binary image. Images are displayed in a web page thanks to a URL pointing to an image stored on a web server.
And, until HTML5 is finalized and well supported by browsers, JavaScript won’t be able to store anything on the hard drive.