2

Currently our web service sends files within one web service call. This would otherwise be just acceptable, but because our mobile devices have memory limitations of 40mb, this causes bit of a problem.

Unfortunately I can't modify the server side, so is there any way to enable chunking or streaming of files just by modifying the client? We are using Asp.Net web services (System.Web.Services, .NET3.5), but I'm also interested of hearing a WCF-solution, if that enables it.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Juha
  • 672
  • 7
  • 20
  • In your current WCF implementation do you use streams or byte array for transfer? – Suresh Kumar Veluswamy May 31 '13 at 07:27
  • I think it will be hard if you cant make changes on the server side. How is the endpoint defined right now? – Jocke May 31 '13 at 11:38
  • Well.. we don't have WCF client yet, but that could be an option if it would enable this. The method transfers data in byte array and endpoint is just basic http endpoint with default settings. – Juha Jun 02 '13 at 11:59

1 Answers1

0

Take a look at this articles:

Large Data and Streaming

How to: Enable a Web Service to Send and Receive Large Amounts of Data

There was also an example of Web.config configuration:

<configuration>
  <system.web>
  <httpRuntime maxMessageLength="102400"
    executionTimeoutInSeconds="100"/>
  </system.web>
</configuration>
MikroDel
  • 6,705
  • 7
  • 39
  • 74
  • Thanks for the suggestion, but I believe this would also require modifications to the server which is not an option. – Juha Jun 02 '13 at 11:57