Facing problem with serialization
<p>HI 
Here is my scenario where i have to serialize an object to a file.</p>

<p>I am using binaryformatter to serialize an object as,</p>

<pre><code>            IFormatter formatter = new BinaryFormatter();
            formatter.Serialize(stream1, object);
</code></pre>

<p>I am writting GetObjectData() as follows,</p>

<pre><code>            serinfo.AddValue("string1",objecta);
            serinfo.AddValue("string2",objectb);
            serinfo.AddValue("string3",objectc);
</code></pre>

<p>I am serializing 2 lists list1, list2 in objectb. sizeof the lists vary time to time.(each list may also have 100000 elements.. means number of elements in list influence the size of the stream).so, when i serialize the object, my stream size should not exceed 10mb and If it exceeds i should write in another stream. simply to say, if size exceeds 10mb, i should have one more stream and each stream should be in following format</p>

<pre><code>stream1 --&gt; objecta,(objectb)some n values in list,objectc
stream2 --&gt; objecta,(objectb)values in list from n+1 to some m,objectc
 ..
streamn --&gt; ........
</code></pre>

<p>each stream size should be limited to 10mb..</p>

<p>Please provide me some clues to do this..
thanks in advance..
(first of all thanks for reading this large qn..:P)</p>
