Retrieve the contents of an attachment

  1. Import the net.rim.blackberry.api.mail.SupportedAttachmentPart class.
  2. Invoke SupportedAttachmentPart.getContent().
    String s = new String((byte[])p.getContent());

Was this information helpful? Send us your comments.