aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
reading from file
Backgrounds in Applets
Writing Image from Applet
dynamic Image in table: webuijsf:table
set return path in MimeMessage