Click here to Skip to main content
15,917,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1.how clients want to send data in 2 gb, how do we optimise it in wcf?

2.first is it possible to send that much data,

3.i have one anser is buffering. is this corrent answer, i want to know more.

is there any way to do such applications,if then how do we optimise it.

Regards
James
Posted

If you really must do this through WCF, you are probably going to need to do something like Chunking:

http://msdn.microsoft.com/en-us/library/aa717050.aspx[^]

Another option would be to use a library like the NeatUpload project:

http://neatupload.codeplex.com/[^]

Whatever you do, you are going to need to work through a lot of issues. Uploading 2 GB is tough on any server. You are going to need to worry about connection timeouts, buffer overflow, broken connections, etc. Part of the issue will be your IIS server as well, since there are limits there too.

This blog post might give you some other options as well:

http://nirajrules.wordpress.com/2009/08/03/mtom-vs-streaming-vs-compression-%E2%80%93-large-attachments-over-wcf/[^]
 
Share this answer
 
Comments
jameschowdaree 26-Jun-12 11:47am    
thanks for updates Tim Corey.
You can consider using Compression in wcf using Gzip

http://wcfextensions.codeplex.com/[^]
 
Share this answer
 
v2
belowin code should be helpful for you

CompressionBindingElement element = new CompressionBindingElement();
element.Algorithm = CompressionAlgorithm.Deflate;
element.Level = CompressionLevel.Maximum;

CustomBinding binding = new CustomBinding();
binding.Elements.Add(element);
binding.Elements.Add(SecurityBindingElement.CreateSspiNegotiationBindingElement());
binding.Elements.Add(new TextMessageEncodingBindingElement());
binding.Elements.Add(new HttpTransportBindingElement());
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900