XmlWriter最大文件大小(在.NET 2.0中) [英] XmlWriter maximum file size (in .NET 2.0)

查看:92
本文介绍了XmlWriter最大文件大小(在.NET 2.0中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,



我正在处理项目的一部分,我们正在使用 XmlWriter 用于将数据导出到本地或联网硬盘驱动器的.NET 2.0 Framework类。我们发现其中一个安装存在问题,其中写入的最大数据量限制为1024KB。



最初我们虽然这是操作系统的问题,所以我们将安装的副本撤回到我们自己的计算机上,我们测试的每台机器都遇到了同样的问题。



是否有隐藏的最大文件使用 XmlWriter 类编写XML文档时的限制?在做了一些研究之后,我相信最大尺寸应该是50MB,但是我们的上限仅为1MB。完全省略1MB标记后的任何数据(例如,即使在写入元素的过程中,文件也会突然结束。)



提前致谢。

Hey all,

I'm working on part of a project, and we're using the XmlWriter class of the .NET 2.0 Framework for exporting data onto a local or networked hard-drive. We discovered an issue with one of the installations, where the maximum amount of data being written was limited to 1024KB.

Initially we though this was an issue with the operating system, so we pulled back a copy of the installation to our own computers, and every machine we have tested on has experienced the same problem.

Is there a hidden maximum file limit when writing an XML document using the XmlWriter class? After doing some researching, I believe the maximum size is supposed to be 50MB, however we're capped solely to 1MB. Any data after the 1MB mark is completely omitted (for instance, even in the middle of writing an element, the file can abruptly end.)

Thanks in advance.

推荐答案

这篇关于XmlWriter最大文件大小(在.NET 2.0中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆