Read Response object
How do I read/write Response to an array? I'm not talkin开发者_开发百科g about HttpWebResponse but using Response. The purpose is that I'm writing to the response to build a simple file and I need to perform a checksum on it.
Is it possible to read everything I've written to the response using the response object?
I've tried Response.OutputStream but this appears to be write only.
Update Yes it is httpresonse but not httpwebresponse. I think. I think the answer may be to use Response.Filter
The other streams do not allow reading from. Checking now. Response.Filter is not working. I can not read from it either.
I would write the content to a byte[]
, checksum it and write it to the stream afterwards.
精彩评论