02-27-2007, 02:34 PM
Join Date: Feb 2007
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Read mail attachment
Please Login to Remove!
Hello @ all,
I try to read a mail attachment on the blackberry. The attachment is an XML file.
I tried it with the following coding, but it didn't work:
Multipart myMulti = (Multipart) folderevent.getMessage().getContent();
UnsupportedAttachmentPart currentPart = (UnsupportedAttachmentPart) myMulti.getBodyPart(1);
String s = new String((byte)currentPart.getContent());
Can anyone help me?