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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top