Because the project needs to use the Rich Text editor in the Silverlight project, the good online Rich text editor has many FCKeditor, Baidu's ueditor, but these rich text editors are all HTML, You want to use these rich text editors to host HTML pages in Silverlight.
Previously found a third-party control htmlhost that hosts HTML pages in Silverliht, but when this control has a bad place, it uses only all the server-side controls in the Silverlight project to enter Chinese.
Recently found a Daniel himself wrote a control, to meet our needs, self-transformation and put into the project.
First I wrap it up as a user control that looks like this:
Then in the project, when you encounter a problem, the value obtained by this control is actually XML, which is stored in a field of type Clob in Oracle by string, and the string is too long:
Although the CLOB type in Oracle can hold large objects of 4G, the problem of long characters will occur if the characters between the saved "are more than 2000 (2000 or 4000), and the resolution parameter is passed."
There was a problem when uploading files through WCF:
Remember uploading a Word document with more than 60 k, an error occurred: "The remote server returned an error: NotFound", check a few articles, basically directly pointed out, causing the wrong reason: the amount of data transmitted is too large, you need to configure the server and customer service side of CONFIG.
1. Configure in (server side) Webconfig:
<system.serviceModel>
<services>
<service behaviorconfiguration= "Metadatabehavior" name= "DigitalCityCommandPlatform.Web.OracleService" >
<endpoint binding= "BasicHttpBinding" bindingconfiguration= "NEWBINDING0" contract= " DigitalCityCommandPlatform.Web.IOracleService "/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name= "Metadatabehavior" >
<servicemetadata httpgetenabled= "true"/>
<servicedebug includeexceptiondetailinfaults= "false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<servicehostingenvironment aspnetcompatibilityenabled= "true" multiplesitebindingsenabled= "true"/>
<bindings>
<basicHttpBinding>
<binding name= "NEWBINDING0" maxbufferpoolsize= "2147483647" maxreceivedmessagesize= "2147483647" messageEncoding= "Text" > <readerquotas maxdepth= "2147483647" maxstringcontentlength= "2147483647" maxarraylength= "21474836 "Maxbytesperread=" 2147483647 "maxnametablecharcount=" 2147483647 "/>
</binding>
</basicHttpBinding>
</bindings>
2. In the client configuration, this configuration file is automatically generated when the
Add the following code to <system.serviceModel>
<bindings>
<basicHttpBinding>
< Binding Name= "Basichttpbinding_ioracleservice" maxbuffersize= "2147483647"
maxreceivedmessagesize= " 2147483647,
<security mode= "None"/>
</binding>
</basichttpbinding>
</bindings>
2147483647 Maximum bytes, this is the maximum number of bytes Int32, the size is 2047M, it is sure to fit the normal data transmission.
Well, the basic functions are implemented.