01-05-2009 03:49 PM
How To - Create an attachment Article Number: DB-00009 http://www.blackberry.com/knowledgecenterpublic/li
Basically creating a Multipart that is made up of SupportedAttachmentParts.
The problem seems to be that in order to create a SupportedAttachmentPart you need to read all the data for file you are attaching into a byte array. This process can take quite a bit of time (tens of seconds when it comes to video). It seems like when you add an attachment manually from the email application that the attachment appears instantly which leads me to believe that RIM is doing things a bit differently.
Does anyone else have experience creating email attachments from large files (several hundred kb)? I would greatly appreciate it if somone could help me streamline this process.
Thanks in advance.
01-05-2009 05:00 PM
Thanks for the help. I suspected this was the case.
It seems the more I program for BlackBerry the more frustrated I become with these dead-end APIs. If RIM really wants to stick it to Apple they need to spend some time beefing up their APIs and empowering developers to make better apps.
I'll try a few more things and let everyone know if I find an acceptable solution.