Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inline image for email from relative path

 
Rajan Nath
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using spring for inline image
portion of the code is like

MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, true);
helper.setTo(to);
helper.setFrom(from);
helper.addInline("abc", new File("c:/Sample.jpg"));

It is working but if I want the image should be taken from some jar file
so that I had given a path like "\com\ind\Sample.jpg"
Its not working
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic