LosFormatter and data serialization
<p>I have app with two sites, one where design is done and other which returns Images.I was storing my values to generic types and then converted them to query string and just set Image src on desing page to return changes. Code was getting bad and I was struggling with diffrent data on every place(since I have few different objects,and few same).I finally gave up after long struggle with query strings because my data was always messed up becuase of 1000 converting to different types.</p>

<p>Well now I created classes for my objects and everything is perfect but now when I serialize my objects with LosFormatter and glue it up like:</p>

<pre><code> &lt;img id="img" src="Image.aspx?image=/wEy8AgAAQAAAP////8BAAAAAAAAAAwCAAAAQkxpa2VNeVN0dWZmLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAUVN5c3RlbS5EcmF3aW5nLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJh..." &lt;/img&gt;
</code></pre>

<p>Nothing happens. Page "Image.aspx" doesn't even get called, nor I get any errors. I tried setting breakpoints to page_load and they never get hit.Everything worked fine with generic types and "normal" query string.Here is my LosFormatter Code:</p>

<pre><code>public void RedrawImage()
{            
    System.Web.UI.LosFormatter formatter = new System.Web.UI.LosFormatter();
    StringWriter writer = new StringWriter();
    formatter.Serialize(writer,myObject);
    img.ImageUrl = "~/Image.aspx?image=" + Server.HtmlEncode(writer.ToString());
}
</code></pre>

<p>Has anyone had any similar issues?</p>
