Results
When the PersistencyManager saves out the drawing document, the size is much, much larger than expected (even for XML). I usually just have to stop it and looking at what it was doing, I see it serializing out the byte array like (truncated for brevity):
<Object typeId="80" name="Tag">
<Object typeId="81" name="Data">
<Collection>
<PrimitiveItem>2;255</PrimitiveItem>
<PrimitiveItem>2;216</PrimitiveItem>
<PrimitiveItem>2;255</PrimitiveItem>
<PrimitiveItem>2;224</PrimitiveItem>
<PrimitiveItem>2;0</PrimitiveItem>
<PrimitiveItem>2;16</PrimitiveItem>
<PrimitiveItem>2;74</PrimitiveItem>
<PrimitiveItem>2;70</PrimitiveItem>
<PrimitiveItem>2;73</PrimitiveItem>
<PrimitiveItem>2;70</PrimitiveItem>
<PrimitiveItem>2;0</PrimitiveItem>
<PrimitiveItem>2;1</PrimitiveItem>
<PrimitiveItem>2;1</PrimitiveItem>
<PrimitiveItem>2;1</PrimitiveItem>
...
Every byte in the array as a separate XML element?
Where as, if as a test I just use a generic .Net XMLSerializer class the Data property is serialize as a base64 incoded string like(truncated for brevity):
<TestInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Data>/9j/4AAQSkZJRgABAQEAYABgAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGl..........
Is there anyway to have PersistencyManager serialize that byte[] property more reasonably?
Thanks in Advance,
Jason Irby