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 JSE/JEE APIs and the fly likes Treat in memory string as file 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 » Java » Other JSE/JEE APIs
Bookmark "Treat in memory string as file" Watch "Treat in memory string as file" New topic
Author

Treat in memory string as file

Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290

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


OCP/MCP/SCJP/SCWCD/IBM XML/SCMAD/SCEA-1
Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290

Here is the solution.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Treat in memory string as file
 
Similar Threads
Java Mail in a Web application
JAXM
Post to an URL using HttpURLConnection
Multiple attachemnts using java Mail API
Sending Mail via socket - attachments?