This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail Attachment of File via Stream  RSS feed

 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I have a java program, and I want to attach one file, that is a pdf one, and one of other component generates it on the fly .,

Instead of saving that PDF file I want to get the IO stream of file and want to attache that IO stream as an attachement with my Message object of Javax.mail.Message JavaMail Api..


Any prompt reply... will be highly apprecieated
Regards
Awais Bajwa
Member JCP.
 
Dave Wingate
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this post for a similar question.
 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brilliant Dave.. it really works ..
thanks a lot. Although i would like to knwo the usefulness of Buffering.

Regards
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!