Is able to pass image file to request message

Topics: General Discussion Forum, July and December Releases Forum, Service Factory Modeling Edition Forum
Aug 12, 2009 at 10:54 AM

i am using wssf ( wcf ) and i want to pass to request message an object ( Image file ) then i got that error

The type System.Drawing.Bitmap was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.

best regards

Karim

Aug 13, 2009 at 4:21 AM

That's an issue with the Bitmap type.

You may try some of these tips using REST or a receive sample.

Otherwise you may consider reading this thread with some more suggestions.

 

 

Aug 17, 2009 at 2:39 PM

Dear Mr.Hernandelahitte,

thank you for this links , actually i tried this snaped of code at web.config

 

<basicHttpBinding>

       <binding name="BasicHttpBinding_ICouponService" closeTimeout="00:01:00"

       openTimeout="00:01:00" receiveTimeout="00:59:00" sendTimeout="00:01:00"

       allowCookies="false" bypassProxyOnLocal="false"
       hostNameComparisonMode="StrongWildcard"

       maxBufferSize="2000000" maxBufferPoolSize="524288"
       maxReceivedMessageSize="2000000"

       messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"

       useDefaultWebProxy="true">

         <readerQuotas maxDepth="32" maxStringContentLength="8192"
         maxArrayLength="16384"

         maxBytesPerRead="4096" maxNameTableCharCount="16384" />

         <security mode="None">

           <transport clientCredentialType="None" proxyCredentialType="None"

           realm="" />

           <message clientCredentialType="UserName" algorithmSuite="Default" />

         </security>
       </binding>
     </basicHttpBinding>


and i works well on pages size 30 kb untill i think less then 60 kb,that's confues me i don't know , Do you think the problem with the machine?

( i still work on localhost )

Aug 18, 2009 at 6:34 PM

Take a look here, http://blogs.msdn.com/drnick/archive/2006/03/16/552628.aspx

and here, http://www.punkcoder.com/Blog/files/60e55f871d214267bd1319f2aff26a52-7.html