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


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



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

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

       allowCookies="false" bypassProxyOnLocal="false"

       maxBufferSize="2000000" maxBufferPoolSize="524288"

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


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

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

         <security mode="None">

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

           realm="" />

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


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,

and here,