Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Take a look at <a href="http://msdn.microsoft.com/en-us/library/ms733742.aspx" rel="nofollow noreferrer">this article on MSDN</a> regarding the transfer of large data to/fro a WCF service. It will require you to change your data contract to a <a href="http://msdn.microsoft.com/en-us/library/ms730255.aspx" rel="nofollow noreferrer">Message Contract</a>, using the <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.messagecontractattribute.aspx" rel="nofollow noreferrer">MessageContractAttribute</a> instead of <code>DataContract</code>, <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.messageheaderattribute.aspx" rel="nofollow noreferrer">MessageHeaderAttribute</a> instead of <code>DataMember</code> on all but the large data field, and then the <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.messagebodymemberattribute.aspx" rel="nofollow noreferrer">MessageBodyMemberAttribute</a> on the byte data - which should be changed to a <a href="http://msdn.microsoft.com/en-us/library/system.io.stream.aspx" rel="nofollow noreferrer">Stream</a>.</p> <p>Please note that the streams received this way tend to return <code>false</code> on the <a href="http://msdn.microsoft.com/en-us/library/system.io.stream.canseek.aspx" rel="nofollow noreferrer">CanSeek</a> property so be careful how you read the data from the stream.</p> <p>You may also need to adjust your message size allowances on both client and server side configurations, using something similar to that <a href="https://stackoverflow.com/questions/884235/wcf-how-to-increase-message-size-quota">described here</a></p> <p>Hope that helps</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload