users@jersey.java.net

Re: [Jersey] Multipart 1.0.3 not finding message body reader

From: Ari Heino <ext.ari.heino_at_tieto.com>
Date: Tue, 2 Jun 2009 23:44:33 -0700 (PDT)

Paul Sandoz wrote:
>
>
> If you want to stream the body part (which will be cached to disk) you
> need to do:
>
> InputStream in =
> multiPart.getBodyParts().get(1).getEntityAs(InputStream.class);
>
>

So if i pass on this Stream to other components, does it actually contain
anything? Like you said, MimePull needs to be "used" inside Jersey resource
class, otherwise stream.available() == 0. So that means that the stream
needs to be read into memory while process/thread is still in jersey
resource, right? Or is the content available elsewhere also, since it is
cached to disk?
-- 
View this message in context: http://n2.nabble.com/Multipart-1.0.3-not-finding-message-body-reader-tp2668407p3016682.html
Sent from the Jersey mailing list archive at Nabble.com.