Hi,

I am using mime4j for parsing an incoming mail stream and pulling out email 
body (html and plain text) and attachments.

Basically I am creating an 'Email' class that contains 'EmailAttachment' object 
references.

The 'EmailAttachment' consists of a 'BodyDescriptor' and an 'InputStream', that 
are populated by listening to the events generated by a 'ContentHandler'.

Now the problem that I am facing is that as soon as parsing is over and I pull 
out 'EmailAttachment' objects for further processing , the InputStream object 
does not have the full decoded data of the original attachment, only a small 
amount of the original attachment is there.

I am unable to understand where is the data going?

Do I need to use some kind of in memory storage provider?

Thanks
Ashish Sharma 

Reply via email to