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: Wed, 22 Apr 2009 01:49:51 -0700 (PDT)

Hi! Was wondering if the way to get java.io.InputStream from this Multipart
has changed as well with tha move from JavaMail to MIMEPull library?

Here's how i am getting InputStream from Multipart input:

  // get the second part which is the binary content
        BodyPartEntity bpe = (BodyPartEntity)
multiPart.getBodyParts().get(1).getEntity();
        InputStream source = null;

        try {
            source = bpe.getInputStream();

            System.out.println("source.available(): " + source.available());
        }

And since i changed to use MIMEPull liberary, the available content has
always been zero?
-- 
View this message in context: http://n2.nabble.com/Multipart-1.0.3-not-finding-message-body-reader-tp2668407p2674972.html
Sent from the Jersey mailing list archive at Nabble.com.