• 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!