如何在asp.net C#上传更多2gb文件 [英] How to upload more then 2gb file in asp.net C#

查看:68
本文介绍了如何在asp.net C#上传更多2gb文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net C#上传更多2gb文件...

i am使用VS2010 n SQL2008使用.net Frmwrk 4.0













谢谢....



SHOUTING删除 - OriginalGriff [/ edit]

解决方案

你不能。

.NET无法处理任何大小超过2GB的对象 - 它是第一个版本内置的限制,并且今天仍然存在。

没有,没有单个字符串或字节数组可以自己超过2GB。一个字节数组的数组可以包含许多2GB的单个数组,但没有单个项可以超过它。



您需要减小文件大小或找到不同的允许您将较小的块保存到文件而不将它们保存为单个对象的机制。


您可以在ASP.NET中设置的最大大小为 2097151Kb = 2Gb 。如果您需要上传大于 2Gb 的文件,您必须实现可恢复的上传界面并上传带有片段或块的文件。

以下链接对您有所帮助:

是否有任何第三方文件上传工具来上传大于2GB的文件? [ ^ ]

ASP.NET中的大文件上传 [ ^ ]

使用HttpHa以块的形式上传文件ndler和HttpWebRequest [ ^ ]

How to upload more then 2gb file in asp.net C#...
i am using VS2010 n SQL2008 With .net Frmwrk 4.0
its urgent guys help me....






Thanks....

[edit]SHOUTING removed - OriginalGriff[/edit]

解决方案

You can't.
.NET cannot handle any object with a size greater than 2GB - it is a limit built in to the first version, and which persists today.
Nothing, no single string, or array of bytes can exceed 2GB on it's own. An Array of array of bytes can contain many individual arrays of 2GB, but no single item can exceed that.

You will need to reduce your file size or find a different mechanism that allows you to save smaller "chunks" to a file without holding them as a single object.


The maximum size you can set in ASP.NET is 2097151Kb = 2Gb. If you need to upload files larger than 2Gb you must implement resumeable upload interfaces and upload files with segments or chunks.
Following links would be helpful for you:
Are there any third party file upload tools to upload files larger than 2GB?[^]
Large file uploads in ASP.NET[^]
File uploading in chunks using HttpHandler and HttpWebRequest[^]


这篇关于如何在asp.net C#上传更多2gb文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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