james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: MIME part size
Date Mon, 18 Jul 2011 09:27:46 GMT
On Mon, 2011-07-18 at 00:40 +0100, Rustam Aliyev wrote:
> Hi Norman,
> 
> BodyDescriptor only has getContentLength() which returns "Content 
> length, if known, or -1, to indicate the absence of a content-length 
> header".
> 
> Taking into account that most of attachment don't have content-length, 
> this won't be very helpful.   ... or am I missing somehitng?
> 
> 
> Thanks,
> Rustam.
> 

Rustam

Reading through the content of a body part is the only reliable way of
finding its length. 

Oleg



Mime
View raw message