在visual studio 2008中使用Web服务字节数组传输大型zip文件 [英] Transferring a large zip file using a web service byte array in visual studio 2008

查看:65
本文介绍了在visual studio 2008中使用Web服务字节数组传输大型zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试构建一个允许客户端程序向其发送大型拉链的Web服务(> 256Kb)。我已经定义了代码中的网络服务如下:


   Public Function sendData(ByVal sTransactionID As String,_

                              ByVal bZip As Byte(),_

      ,                    ByRef _returnmessage As )作为布尔值


BZip是一个包含zip文件的字节数组。 但是它在超过256Kb的文件上失败。


我需要做些什么才能让这个Web服务能够接收大文件?


我是使用Visual Studio 2008。


 

解决方案

嗨 


您是否尝试将网络服务的最大请求长度设置为较大值



  < system .web>


   &NBSP;  < httpRuntime maxRequestLength =" 2097151" />


< /system.web>



Hi,

I am trying to build a web service that will allow client programs to send large zips to it (>256Kb). I've defined the web service in code as follows :

   Public Function sendData(ByVal sTransactionID As String, _
                             ByVal bZip As Byte(), _
                             ByRef _returnmessage As String) As Boolean

BZip is a byte array containing the zip file.  However it fails on files over 256Kb.

What do I have to do to get this web service able to receive large files ?

I'm using Visual Studio 2008.

 

解决方案

Hi 

Have you tried setting the max request length of the web service to a large value

  <system.web>

      <httpRuntime maxRequestLength="2097151"/>

</system.web>


这篇关于在visual studio 2008中使用Web服务字节数组传输大型zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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