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

Discussion in 'Java' started by sgane, Oct 11, 2004.

  1. sgane

    sgane Guest

    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
    sgane, Oct 11, 2004
    #1
    1. Advertising

  2. sgane

    Paul Lutus Guest

    sgane wrote:

    > 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.

    --
    Paul Lutus
    http://www.arachnoid.com
    Paul Lutus, Oct 11, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SMG
    Replies:
    1
    Views:
    2,398
    Kevin
    Apr 26, 2005
  2. Rey
    Replies:
    0
    Views:
    561
  3. sams
    Replies:
    9
    Views:
    108
    Ala Qumsieh
    May 1, 2004
  4. Replies:
    5
    Views:
    200
    A. Sinan Unur
    Sep 8, 2005
  5. Replies:
    0
    Views:
    148
Loading...

Share This Page