Sorry the late response... Yes, I think that SequenceInputStream is my answer. Thank you very much Alan and Tatu for the tip.
Tatu, I don't understand what you mean at the end of your response? The whole HTTP response, which server sends back, is the mime message. So the response headers are also part of returned mime message. -ripok- Tatu Saloranta wrote: > > Can you perhaps just use java.io.SequenceInputStream, > by creating simple dummy input stream for content type > part (new > ByteArrayInputStream(headerString.getBytes([whatever-encoding > -you-got])) and chain this with body contents? > > It also seems strange that a library (mime4j) would > require access to parts it basically shouldn't need, > so perhaps there is a way to pass this information > some other way than it being part of stream? > > Hope this helps, > > -+ Tatu +- > -- View this message in context: http://www.nabble.com/Whole-HTTP-response-as-InputStream--tp15759846p15822055.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
