Silverlight+WCF保存二进制图片到数据大小受了限制,只能保存10KB以下的图片,10KB以上的就报错了,我请问下,silverlight+wcf在保存图片的时候有限制吗,怎样把大点的图片呢?
改配置
<system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="Upload"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> <dataContractSerializer maxItemsInObjectGraph="2147483647"/> <serviceTimeouts transactionTimeout="00:10:00" /> <serviceThrottling maxConcurrentCalls="1024" maxConcurrentSessions="1024" maxConcurrentInstances="1024" /> </behavior> </serviceBehaviors> </behaviors> <services> <service name="" behaviorConfiguration="Upload" > <!--注1:此处的contract值不能随便修改,命名格式为:完全命名空间+接口名 --> <!--注2:此处的bindingConfiguration值要与binding中的name值对应--> <endpoint contract="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IUploadService" address="" > </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IUploadService" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00"> <readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" /> <!--1024576 为 1024KB--> <security mode="None" /> </binding> </basicHttpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" /> </system.serviceModel>
我的配置文件和你的一样啊