mail.mime.base64.ignoreerrors not working

Hi

whenever i try to write the mime message to a document, i keep getting this exception

java.io.IOException: Error in encoded stream, got 3

at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:148)

at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:53)

at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:78)

at java.io.FilterInputStream.read(FilterInputStream.java:110)

at javax.activation.DataHandler.writeTo(DataHandler.java:289)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668)

at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:232)

at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67)

at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)

at javax.activation.DataHandler.writeTo(DataHandler.java:295)

I have even tried setting

System.setProperty("mail.mime.base64.ignoreerrors", "true");

Even this doesnot solve the problem..

How exactly to set this Property? Any idea why this is not working?

Any help would be appreciated

[1247 byte] By [darchanaa] at [2007-10-3 3:47:20]
# 1
> System.setProperty("mail.mime.base64.ignoreerrors", "true");But that sets a system property with that name and value. Instead you should set the property on the session, in exactly the same way that you set the properties containing the server name and like that.
DrClapa at 2007-7-14 21:44:17 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

> > System.setProperty("mail.mime.base64.ignoreerrors",

> "true");

>

> But that sets a system property with that name

> and value. Instead you should set the property on the

> session, in exactly the same way that you set the

> properties containing the server name and like that.

No, actually, this is a System property. The base64

decoding code doesn't have knowledge of the Session.

bshannona at 2007-7-14 21:44:17 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...