I am trying to create an windows application which will capture the screen periodically and convert the image as binary and send it through WCF service. WCF save this value in SQL database.
I cannot able to send through the WCF Service it throwing the error. Other than the binary image, I send the user name only.
I checked the total service size is about 200kb, also in web.config file I gave allowed size of maxReceivedMessageSize="2000000"(2MB).
<bindings>
<basicHttpBinding>
<binding name="sslBinding" maxReceivedMessageSize="2000000" maxBufferSize="2000000">
<readerQuotas maxArrayLength="2000000" maxStringContentLength="2000000" />
<security mode="Transport" >
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
</security>
</binding>
</basicHttpBinding>
</bindings>
Tried:
- Removed the binding name
- Even gave maxReceivedMessageSize is 5MB.
I don't want to change basicHttpBinding to webHttpBinding, because other services are running in the same application.