i've looked to a lot of solutions to resolve my problem but i didn't found anything good for me.
my problem is simple: i can't send a long array of bytes through the webservice. I can send an array that represents an image of 4 Kbytes but nothing bigger.
this is the client configuration
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ICespitiAVService" closeTimeout="02:00:00"
openTimeout="02:00:00" receiveTimeout="02:00:00" sendTimeout="02:00:00" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" >
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:51366/CespitiAVService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ICespitiAVService"
contract="CespitiAVService.ICespitiAVService" name="BasicHttpBinding_ICespitiAVService"/>
</client>
</system.serviceModel>
</configuration>
this is the server configuration
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<client />
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
<dataContractSerializer maxItemsInObjectGraph="655360"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true"/>
</system.serviceModel>
I've read solutions where somebody said to put the readerquotas also in the client config but the xml won't accept it, saying that it accepts only security nodes.
Somebody says that changing the transfermode in the client config will resolve the problem, but i can use only the buffered mode it doesn't accept anything else.
I've used fiddler and it says that the program exceeds the maxarraylength, as you can see I've changed this value in the web.config but i can't change in the client config because it says that the binding node doesn't have the readerquotas property.