This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Don't get me started about those stupid light bulbs.
 
subject: inline image for email from relative path
 
Similar Threads
dynamic Image in table: webuijsf:table
Backgrounds in Applets
reading from file
Writing Image from Applet
set return path in MimeMessage