james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <norman.mau...@googlemail.com>
Subject Re: MIME part size
Date Sun, 17 Jul 2011 18:23:17 GMT
Hi there,

this should be possible with the BodyDescriptor.

http://james.apache.org/mime4j/apidocs/org/apache/james/mime4j/descriptor/BodyDescriptor.html

Bye,
Norman


2011/7/16 Rustam Aliyev <rustam@code.az>:
> Hi,
>
> First of all, sorry for addressing this question to the dev group, but I was
> unable to find any mime4j user groups.
>
> I need to get MIME part size (e.g. size of attachment/BinaryBody) but can't
> figure out how to do it. At the moment I use DOM parser and then read
> through part.getBody().getInputStream() to calculate its size. Clearly this
> is not the best way.
>
> Also, is it possible to get mime encoded size as well as original (decoded)
> size?
>
> PS: I'm using latest 0.7 snapshot.
>
> Regards,
> Rustam.
>
> <http://www.linkedin.com/in/aliyev>
>

Mime
View raw message