How to Display get text/plain body part from the message???

S

sgane

Hi friends,
I want to display a message in an editor pane. There's no
problem in case of small sized messages. But when the size exceeds,
1.5MB I takes a lot of time to get the body of the message.
I'm using mime message for getting the body of the message
from the server. I'm seperating the multipart message recursively to
get the various body parts. The problem is with getContent() method.
It takes time to load the large body part into the ram.
Is there any solution for this?

Thanks,
Ganesh
 
P

Paul Lutus

sgane said:
Hi friends,
I want to display a message in an editor pane. There's no
problem in case of small sized messages. But when the size exceeds,
1.5MB I takes a lot of time to get the body of the message.
I'm using mime message for getting the body of the message
from the server. I'm seperating the multipart message recursively to
get the various body parts. The problem is with getContent() method.
It takes time to load the large body part into the ram.
Is there any solution for this?

1. Use smaller messages.

2. Make the server do the filtering, not the client. Example: run a database
on the server side and issue an SQL query from the client that extracts
only the relevant text.

3. Restructure your data so it is organized more efficiently.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top