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
tek3
Posts: 190
Registered: ‎07-08-2009
My Device: Not Specified

Attachement names gets garbled in Blackberry email

In my application i have to record a voice and send the recorded voice as an attachment to the client's server. I am using Transport.send(message) to send the email from within the application.
Now the problem that i am facing is that if the name of the recorded file is "abc.amr", it gets changed to something like "utf-8BdGVzdC5hbXI" on client server. The name gets garbled on client's server. However if I append ".amr" to the garbled file, it plays correctly. This is case not only with sound file but with any kind of file i attach (image, text etc.).
I also tried to send the mail separately using Blackberry email client, in that also the sme behaviour is seen. Can any suggest what should i add in my code to make it work correctly or any external changes.

Can any body help me in pointing out what might be going wrong.

Any help will be greatly appreciated.

 

Thanx,

Regards,

tek3