Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 15
Registered: ‎08-14-2008
My Device: 8300 with 4.5.0.52 b75 OS

Get attachment content

Can somebody help me getting content of attachment? I've use the sample code in Article Number: DB-00143 .

I'm using simulator BB 8300 with OS version 4.5.0.44, my device (also BB 8300) has OS version 4.5.0.52.

The attachment name is x-rimdevice-blablabla. I've tried setting the attachment as supported, walking over the mail parts or making own method for atachment processing without success.

 

A can't get the content, it returns null. 

 

When using OS version 4.2.x.x. (not sure which one) , the same code is working and i can display the content.

Both simulator or downgraded device are working.

 

Any thougth?

 

I would appreciate sending me some working small sample project that just display some data from attachment(first line or somthing). A have the keys for signing the application. Or sending me working demo.

 

Thank you for any help, i already spent  much time on this Smiley Sad

 

Blazej

 

 

 

 

BlackBerry Development Advisor
Posts: 15,697
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Get attachment content

This is an issue that exists in early builds of version 4.5.0 of BlackBerry handheld software.  It is fixed in version 4.5.0.62 and higher.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 20
Registered: ‎03-07-2009
My Device: Not Specified

Re: Get attachment content

Can i get the link to download version BlackBerry handheld software version 4.5.0.62 and higher.

 

Thanks

 

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Get attachment content

Check this link.

 

http://na.blackberry.com/eng/services/devices/


Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 20
Registered: ‎03-07-2009
My Device: Not Specified

Re: Get attachment content

this contain Blackberry handheld software ver 4.5.0.44 ......i need 4.5.0.62 or higher

 

 

Thanks 

New Developer
Posts: 20
Registered: ‎03-07-2009
My Device: Not Specified

Re: Get attachment content

i have tried on BlackBerry handheld software ver 4.5.0.69 (8310M_PBr4.5.0_rel92_PL2.7.0.72_A4.5.0.69 ) but not getting the contents in attachment even now...... wht shd i do now ?

 

 

Regards,

Preeti

 

 

Highlighted
New Developer
Posts: 88
Registered: ‎11-04-2008
My Device: Not Specified

Re: Get attachment content

hi there,

 

im having the same problem. i cant get the contents of the attachment file.

the filename and file size is correct but when it comes to the content, getContent() and getInputStream() always returns null.

iv tried using simulators 4.3.0 and 4.6.0, and the results are the same.

 

has anybody solved this issue?

 

regards,

jaclyn