473,781 Members | 2,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.Cre ate("http://XXXXXX");
wst = (HttpWebRespons e)wr.GetRespons e();
RecStream = wst.GetResponse Stream();

the answer from the WEB Server is like:

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

thanks for help

Nov 15 '05 #1
0 2714

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
17700
by: Drew Yallop | last post by:
I read an XML file with a stream reader in VB.Net. When I look at the stream reader output in debug mode (by passing cursor over the stream reader object)the format is a perfect replica of the file as displayed when I open the xml file in VS .net 2003 IDE. When I perform the same procedure in C# the stream reader obkect displays a chaotic mess. Lots of whitespace after and "\r" and "\n" after each element. The problem is that I cannot...
1
4800
by: Vitaly | last post by:
// Open input file and create the BinaryReader. br = new BinaryReader(new FileStream("Test.dat", FileMode.Open, FileAccess.Read)); // Read binary data. d = br.ReadDouble(); A question is how to do the same but read from standard input stream … like Console.In.
5
1612
by: pmclinn | last post by:
I have a datadump from internal equipment that is about 500 megs. The file is dumped every morning in a comma delinated format. Instead of downloading this file to the client and then processing it is there any way to stream the data into the client and read/parse it as it comes in? The file is on our intranet.... Example file:
0
6996
by: r0swell | last post by:
Hey all, I'm trying to make my app read the stream of a text file and begin at the end of the file. Then parse all the lines that get added in the text file by a other app (Its a log file from a game) and display it in a multiple editbox or richeditbox. Ive tryed somthing like this private FileStream file; private StreamReader stream;
3
4030
by: kjell | last post by:
Hi, I'm trying to write a program that reads data from a network stream. I would like the program to read all available data in the buffer and then process the data. I do not want the program to hang unless there is no data in the buffer. For example if there are ten bytes available in the buffer I would like the program to read those ten bytes and then processed the data. If there are twenty bytes available in the buffer I would...
0
1716
by: scottf35 | last post by:
Hi, I am working on (read that - upgrading) an application. This application creates an HTTPWebRequest object, populates it with values which are then sucked out of the Request.Form object (eg someVariable = Request.Form) My problem is that the app doesn't allow input of non-ASCII data in the form. To resolve this I have replace the ContentType from "application/x-www-form-urlencoded" to "multipart/form-data".
0
1033
by: spamguy | last post by:
One function in this fabulous DLL requests a file read in the form of the Stream class...not StreamWriter or StreamReader or MemoryStream, just Stream. Since Stream is abstract, this makes it hard. I've done my best to bounce from Stream to MemoryStream to whatever else, but it just isn't working out. Here's all I have so far, which isn't much. Can someone fill in the blanks? Thanks! public void GetData() { using (Stream stream = new...
6
3772
by: python | last post by:
Is there an elegant way to unget a line when reading from a file/stream iterator/generator? By "unget" I mean a way to push back a line into the source stream and backtrack the iterator/generator one step? The only alternative I can see is to put my line reading in a while-True loop (vs. a for-loop) that manually calls my file/stream iterator/generator's .next() method while manually handling the StopIteration exception. Doesn't sound...
6
3165
by: sapsi | last post by:
Hello, I am using HadoopStreaming using a BinaryInputStream. What this basically does is send a stream of bytes ( the java type is : private byte bytes) to my python program. I have done a test like this, while 1: x=sys.stdin.read(100) if x: print x
1
4158
by: quddusaliquddus | last post by:
Hi :D, I am sending data to server via TCP IP Connection. I am using a continuous loop at the server end - that accepts new clients and while streams can be read, it reads data stream. The data is sent from the client with 2 leading bytes of data that represent the size of the packet of data sent and type of data. My question is: how do I retrieve the size of the data packet and then check that this amount of data has been...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10076
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9939
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8964
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2870
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.