File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes inline image  for email from relative path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "inline image  for email from relative path" Watch "inline image  for email from relative path" New topic
Author

inline image for email from relative path

Rajan Nath
Greenhorn

Joined: Nov 27, 2007
Posts: 22
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inline image for email from relative path