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
