HttpRepsone.OutputStream & HttpWebResponse.GetResponseStream()

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

The example in the msdn shows how to write an image to the OutputStream and
the example for GetResponseStream() shows how to read the stream and write
it to the console. Unfortunately there is no example on how to distinguish
between the image that was written to the stream and the page itself which
is being returned.

Is there a trick getting only that data I want from the stream or do I need
to add a delimiter and parse the entire response?

Thanks,
Joe
 
its the same data. GetResponseStream, just lets you read what was
written to the output stream, which is what is rendered.

if you want just some of the data, then yes you need to parse it.

-- bruce (sqlwork.com)
 
Hello Joe,

I have also found your another duplicated thread in the following newsgroup:

Subject: HttpRepsone.OutputStream & HttpWebResponse.GetResponseStream()
Newsgroups:microsoft.public.dotnet.languages.csharp

I've posted some suggestion there and please feel free to followup if you
have any further questiosn on this..

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top