Reading Content-Type multipart/x-mixed-replace Stream

  • Thread starter Thread starter Werner Maier
  • Start date Start date
W

Werner Maier

Hi

please can anybody help me to read a WEB side with Content-Type:
multipart/x-mixed-replace ("Server Push") .
I am a absolutly newbie with c# .net.

i have problems to read the boundarys to a arry an then convert it to a jpeg

i opend the web like:
wr = (HttpWebRequest)WebRequest.Create("http://XXXXXX");
wst = (HttpWebResponse)wr.GetResponse();
RecStream = wst.GetResponseStream();

the answer from the WEB Server is like:

Content-Type: multipart/x-mixed-replace; boundary=myboundary
myboundary
Content-Type:image/jpeg
... (jpegData)
...
....
myboundary
... (jpegData)
...
....
myboundary
... (jpegData)
...
....

thanks for help
 
Back
Top