Re: I think I've got this message encoded...but I get garbage decode.
Posted By:
Betsy_Zelinger
Posted On:
Friday, June 1, 2001 01:13 PM
Answering myself (Yea, it works now!!)
Finally stumbled on the fact that "secondPart.getInputStream()
has already decoded the data.
So once I dropped off this:
String[] sEncoding = secondPart.getHeader("Content-Transfer-Encoding");
if (sEncoding != null && sEncoding.length > 0) {
fisDecoded = MimeUtility.decode(fisDecoded, sEncoding[0]);
}
I got back what I wanted.
Just answering myself in case anyone else out there has the
same trouble understanding what the heck is being said in
the javadoc for JavaMail.