determine length Response.OutputStream
-
hello, I'm trying to intercept the Response.OutputStream in a HttpModule. Since Response.OutputStream is write-only I tried to filter it using the Filter property, but without success. I need to find a way to modify the stream if it's an image in the BeginRequest or EndRequest event. All I've seen is examples where ppl modify the HTML by filtering. Since my response contains only image data this doesn't work for me. I've been at it for days now X| Ideas anyone ? tia. Patt
-
hello, I'm trying to intercept the Response.OutputStream in a HttpModule. Since Response.OutputStream is write-only I tried to filter it using the Filter property, but without success. I need to find a way to modify the stream if it's an image in the BeginRequest or EndRequest event. All I've seen is examples where ppl modify the HTML by filtering. Since my response contains only image data this doesn't work for me. I've been at it for days now X| Ideas anyone ? tia. Patt
if you want to check then use resStream = response.GetResponseStream(); by reading the stream
Thanks and Regards Sandeep
-
if you want to check then use resStream = response.GetResponseStream(); by reading the stream
Thanks and Regards Sandeep
-
Dear Sandeep, Thank you for your response. Unfortunately WebRequest and WebResponse are not part of the context here. I'm way up the ASP.NET Stack intercepting the Http response. Patt
Sorry Wrong Interpretation :( :sigh:
Thanks and Regards Sandeep