dcsimg
base64 encoding in JavaMail
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   amitava_nag
Posted On:   Friday, June 29, 2001 02:10 AM

I want to encode both the text and the attachment with base64
As per JGuru FAQ, I did
MimeMessage.setHeader("Content-Transfer-Encoding", "base64");
for encoding the text and it worked fine.
for the attachment I did
MimeBodyPart.setHeader( "Content-Transfer-Encoding", "base64" );
and it worked fine for attachment but not the text
Using the above methods only attachment goes base64
encoded but the text goes 7-Bit encoded,
can anybody kindly help me to encode both the text and
attachment with base64.
thanx in advance

Re: base64 encoding in JavaMail

Posted By:   John_Zukowski  
Posted On:   Friday, June 29, 2001 08:31 AM

Encode the text yourself before calling setText().
About | Sitemap | Contact