问题描述:

I am having a problem, I need to serialize really big objects using.

using (FileStream stream = File.Open(fullPath + "/" + backupFile, FileMode.Create))

{

var bformatter = new BinaryFormatter();

bformatter.Serialize(stream, documents);

}

On 64x Architecture and with Im having no Out Of Memmory issue, but now im getting

The internal array cannot expand to greater than Int32.MaxValue elements

Serialized object contains 4 properties that contains other objects (example 43000 objects that contains 60 properties and all are needed).

Is there a way to solve this, increase that limit maybe or compress data?

相关阅读:
Top