Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Image is not added when converting eml into htm

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Thanked 0 Times in 0 Posts

    Default Image is not added when converting eml into htm

    Hi 1 & All,

    I have a problem while converting eml into htm. i.e. the image in the eml is not added to htm.
    Iam using BufferedInputStream and BufferedOutputStream to read the eml body part and write into an htm.

    eml body has text/html part which i wanted to create as separate html file.
    The images are added in this text/html part by specifying the content-id of that image
    i.e. ,
    <TD width="233px"><IMG align="absbottom" src="cid:a" width="233" height="38"></td>
    <TD width="100%"><IMG align="absbottom" src="cid:b" width="100%" height="38"></td>

    This content-ids are defined at the bottom of the eml file.

    Now, the problem is the htm file is created without adding these images and the images are created as separate pages.

    Can any one Please tell me where actually iam going wrong.

    Thanks & Regards,

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,701 Times in 2,651 Posts

    Default Re: Image is not added when converting eml into htm

    I just posted an answer for this question on another thread but can't find it now.

    You've also posted this question at:

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: Image is not added when converting eml into htm

    Please do not post the same question twice on the forums. To keep the discussion in your other thread, I'm locking this.

Similar Threads

  1. Image is not added when converting eml into htm
    By Vjay in forum What's Wrong With My Code?
    Replies: 3
    Last Post: July 4th, 2011, 06:24 AM
  2. Replies: 2
    Last Post: February 14th, 2011, 05:36 PM
  3. Urgent help required - converting image to array
    By Paulious in forum Algorithms & Recursion
    Replies: 0
    Last Post: September 1st, 2010, 06:24 AM
  4. Pixel Alteration in an image/image rotation
    By bguy in forum Java Theory & Questions
    Replies: 3
    Last Post: November 1st, 2009, 10:50 AM
  5. Replies: 4
    Last Post: May 1st, 2009, 03:32 PM