Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) XML issues (Read 7477 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: XML issues
Reply #15 - Nov 8th, 2006 at 1:12pm
Print Post  
Ok, then saving XML through a GZipStream is the best solution for storing the diagram in a database  Wink

Stoyan
  
Back to top
 
IP Logged
 
Phil Jacques
Junior Member
**
Offline


.NET 2.0 Rocks!!!

Posts: 70
Joined: Oct 20th, 2006
Re: XML issues
Reply #16 - Nov 8th, 2006 at 1:17pm
Print Post  
Oh geeeeze ... Wink

I didnt know that .... thanks a lot!! Cheesy Grin

But seriously, i would not like to bring in compression for my own reasons, is there a way to get a smaller size including the object??

Cheers

Phil
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: XML issues
Reply #17 - Nov 8th, 2006 at 1:41pm
Print Post  
How about binary serialization to a BLOB field using the SaveToStream method?

You might need to implement ISerializable to decrease the size of the tag objects representation. Replacing the Tag objects with strings reduced the 50x70 diagram from 277K to 82K, so you will be able to implement better serialization than the one provided by the [Serializable] attribute.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint