Posted on 2008-10-06
i'm trying to get the body of a mimemessage but i get the error javax.mail.util.SharedByteArrayInputStream and i have no idea why it happening
URL url = new URL(sUrl);
InputStream in = url.openStream();
MimeMessage msg = new MimeMessage(session, in);
String a = msg.getContent().toString(); - I get javax.mail.util.SharedByteArrayInputStream and I have no idea why
Can anyone see what I'm doign wrong.
i've upgraded from java 1.5 to 1.6 and using the latest mail.jar