Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Treat in memory string as file  RSS feed

 
Aryan Khan
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using java mail api for sending emails with attachments.
Java mail api supports attachments via FileDataSource and URLDataSource from JAF. Is there any way I can attach some in memory string as attachement rather than writing it to a file and attaching?
Thanks
 
Aryan Khan
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!