当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Big Data Binary serialization

问题描述:

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?

分享给朋友:
您可能感兴趣的文章:
随机阅读: