tags:

views:

20

answers:

1

I have WCF service that is IIS-hosted and I have to send binary data (memory stream that is created by service) in intranet environment.
I use byte[] array in service contract method at present with httpBinding. Though array is not too big (500 KB typically) I am worried about unicode overhead (asmx soap web-services had one, but I'm new to WCF).

What is the best practice to pass binary data with http binding? Can I use tcp/ip for IIS hosted WCF services?

Thank you in advance!

+1  A: 

I would suggest you MTOM encoding in this case. And here's another example. Starting from IIS7 you can use netTcpxxx binary bindings but not in IIS6.

Darin Dimitrov