• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

multiPart.getBodyPart(i) does NOT read in correct order!

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear members,
I am trying to read email and if that email contains any Multipart content, then I want to do some stuff with them.

Here is my code snippet:



the mail content has 3 images in such an order: image001.png is in the first column of a table, image002.png is in the second column of a table, and image003.png is in the third column of a table.
if I print the mailContent- it prints the html of the mail content where the <img src="" > tags are in the order that I mentioned.

but when I print the fileName in method processPart- it DOES NOT print in the proper order. rather it prints

image001
image003
image002

or sometimes in different order!

I am puzzled here!

does not the loop reads the Multipart contents in the proper order? or am I missing something?

thanks in advance
reply
    Bookmark Topic Watch Topic
  • New Topic