How to get text from a SharedByteArrayInputStream
When I get a BodyPart that's an instance of com.sun.mail.util.SharedByteArrayInputStream, how do I retrieve the text from this stream? Treating it as an InputStream and reading the bytes into a buffer yeilds what looks like gibberish. Anybody know how to do this?
Any help would be appreciated!
thanks,
bear

