Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've had some experience with WCF and streaming.</p> <p>Basically, if you don't set the <code>TransferMode</code> to streamed, then it'll default to buffered. So if you are sending large pieces of data, it's going to build up the data on your end in memory and then send it once all the data is loaded and ready to be sent. This is why you were getting out of memory errors because the data was very large and more than your machine's memory.</p> <p>Now if you use streamed, then it'll immediately start sending chunks of data to the other endpoint instead of buffering it up, making memory usage very minimal.</p> <p>But this doesn't mean that the receiver also has to be set up for streaming. They could be setup to buffer and will experience the same problem as the sender did if they do not have sufficient memory for your data.</p> <p>For the best results, both endpoints should be setup to handle streaming (for large data files).</p> <p>Typically, for streaming, you use <code>MessageContracts</code> instead of <code>DataContracts</code> because it gives you more control over the SOAP structure. </p> <p>See these MSDN articles on <a href="http://msdn.microsoft.com/en-us/library/ms730255.aspx" rel="noreferrer">MessageContracts</a> and <a href="http://msdn.microsoft.com/en-us/library/ms733127.aspx" rel="noreferrer">Datacontracts</a> for more info. And here is more info about <a href="http://blogs.msdn.com/b/drnick/archive/2006/03/31/565558.aspx" rel="noreferrer">Buffered vs Streamed</a>.</p>
    singulars
    1. This table or related slice is empty.
    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.
    3. VO
      singulars
      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