I understand that you do not mean HTTP's chunked transfer encoding by the term "chunked stream" and "chunked input". I guess you are using a Multipart-MIME like content encoding. HttpClient does NOT however deal with the content and does not provide any means to parse the contents format. You must therefore either parse the response stream by yourself or use an existing Multipart-MIME library to decode the multipart stream. You may want to have a look at the Commons FileUpload code which does exactly that or at Multipart-MIME Email handling code which must do a similar thing.
Regards
Odi
Srinivas Vemula wrote:
Hi,
We have a an application which sends chunked input stream for a URL request. We are using HttpClient to get the response. The chunked response sent by the application is actually a motion image. The motion image is retrieved by the first GET command operation and will be send as the sequential data. Therefore, display application should display the sequential data with dividing the data into an image-unit. In this case, boundary character string "--myboundary" is fixed as an index.
What is the best way of handling this type of response and storing each image data in a byte[] array , and using a new byte[] array when we see "--myboundary" in the stream.
The URL looks like http://172.16.101.113/image?speed=20 and the response headers are Content-Type: image/jpeg
Thank you all in advance
srini
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- _________________________________________________________________ NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch software engineer [email] [EMAIL PROTECTED] hardturmstrasse 171 [pgp key] 0x81CF3416 8005 zürich [office] +41-1-277 57 35 switzerland [fax] +41-1-277 57 12
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]