[jdev] problem in voice mail

mostafa hamza hamzawey at gmail.com
Wed May 9 07:47:07 CDT 2007


Thanks a lot for your reply,
Well the problem now is that when i encode and try to decode again on the
other side i got this exception
java.lang.ArrayIndexOutOfBoundsException
        at edu.aucegypt.beep.util.Base64.decode(Base64.java:218)
Is there is something that i am missing?

Thanks


On 5/9/07, Norman Rasmussen <norman at rasmussen.co.za> wrote:
>
> On 5/8/07, mostafa hamza <hamzawey at gmail.com> wrote:
> > what i am developing right now is sending voice mail through
> jabber.  the
> > message is just for 20 seconds. i was trying to send it as a body in a
> > message. i send it as  an array of bytes. at the other side when i print
> > these bytes i got them totally different (most of the characters are
> > question marks). could anybody help me in that problem?
>
> Messages MUST be utf-8 encoded, so you'll find you can't just dump
> your binary bits in the message.  Rather base64 encode the data,
> before putting it into the packet, and decode it on the other side.
>
> Of course it goes without saying that you should be using XEP-0047 or
> even XEP-0065.
>
> --
> - Norman Rasmussen
> - Email: norman at rasmussen.co.za
> - Home page: http://norman.rasmussen.co.za/
>



-- 
.......H.A.M.Z.A.W.E.Y.......
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20070509/d52c4d31/attachment-0002.htm>


More information about the JDev mailing list