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 <[email protected]>: > 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> >
