Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. determine length Response.OutputStream

determine length Response.OutputStream

Scheduled Pinned Locked Moved ASP.NET
htmlquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    patt
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • P 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

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      if you want to check then use resStream = response.GetResponseStream(); by reading the stream

      Thanks and Regards Sandeep

      P 1 Reply Last reply
      0
      • S Sandeep Akhare

        if you want to check then use resStream = response.GetResponseStream(); by reading the stream

        Thanks and Regards Sandeep

        P Offline
        P Offline
        patt
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • P patt

          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

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          Sorry Wrong Interpretation :( :sigh:

          Thanks and Regards Sandeep

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups