BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-27-2007, 03:34 PM   #1 (permalink)
New Member
 
Join Date: Feb 2007
Model: 8100
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

Thanks
Michael
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

5Pcs Aoz1014 Z1014ai 5A Aoz1014ai Aoz1014ai Sop8 Sop-8 New Ic W
$2.73
5Pcs Aoz1014 Z1014ai 5A Aoz1014ai Aoz1014ai Sop8 Sop-8 New Ic W picture20Pcs Cbb/Cl 63V 104 0.1Uf 100V104 5% Rohs Capacitor Ic New K
$1.72
20Pcs Cbb/Cl 63V 104 0.1Uf 100V104 5% Rohs Capacitor Ic New K picture1 Lot of 500 Silicon NPN Transistors MMBT2222A. New
$15.99
1 Lot of 500 Silicon NPN Transistors MMBT2222A.  New  pictureRCA 2N1183 Transistor With Mount New old stock
$5.0
RCA 2N1183 Transistor With Mount New old stock picture5Pcs Dip4o Hd63c09ep 63C09 Hitachi Microprocessor 8-Bit New Ic E
$9.08
5Pcs Dip4o Hd63c09ep 63C09 Hitachi Microprocessor 8-Bit New Ic E picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.