In contrast to all the SO posts that talk about this topic, I'm not interested in wrapping a stream object in a [MessageContract]
, since that is not permitted when in streaming mode (afaik).
When I'm in streaming mode, how do I return to the client some metadata, such as length and filename? Can I add a WCF/SOAP header? How would I do this?
I am looking into extending the filestream class and add a [MessageHeader]
attribute, but I'm unable to get this to work.
here is how we do it