dcsimg
how to read only message body part using getInputStream() method of part interface in javamail
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mahadev_hoolikeri
Posted On:   Friday, October 4, 2002 04:33 AM

In web mail application i want to read contents of message which are currently i am able to read through getInputStream() method of part interface. My problem is i am not able to read only message body i.e actual text of the message. It is also giving me its content type and next part information with some content id. To make it more clear i will give you the example If my message is something like this : Image 1 with description // this is plain text // and here goes some image Image 2 with description // this is plain text again // original message ends here Instead of this i am getting message as shown below bo   More>>


In web mail application i want to read contents of message
which are currently i am able to read through getInputStream()
method of part interface. My problem is
i am not able to read only message body i.e actual text of the message.
It is also giving me its content type and next part information
with some content id. To make it more clear i will give you the example

If my message is something like this :


Image 1 with description // this is plain text

// and here goes some image

Image 2 with description // this is plain text again


// original message ends here

Instead of this i am getting message as shown below



boundary="----=_NextPart_001_0009_01C26AE9.36295D80" ---
---=_NextPart_001_0009_01C26AE9.36295D80Content-Type:
text/plain; charset="iso-8859-1"Content-Transfer-
Encoding: quoted-printableimage 1 with descriptionimage
is a logo of data.com------
=_NextPart_001_0009_01C26AE9.36295D80Content-Type:
text/html; charset="iso-8859-1"Content-Transfer-
Encoding: quoted-printable

image 1 with description





image 2 with description

------=_NextPart_001_0009_01C26AE9.36295D80--

So i want only message contents not other info. value

such as boundary ---- or Content-Type:text/plain etc.

So can anybody help me? Thanking all in advance.    <<Less
About | Sitemap | Contact