Thanks a lot for your reply,<br>Well the problem now is that when i encode and try to decode again on the other side i got this exception<br>java.lang.ArrayIndexOutOfBoundsException<br> at edu.aucegypt.beep.util.Base64.decode
(Base64.java:218)<br>Is there is something that i am missing?<br><br>Thanks<br><br><br><div><span class="gmail_quote">On 5/9/07, <b class="gmail_sendername">Norman Rasmussen</b> <<a href="mailto:firstname.lastname@example.org">
email@example.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 5/8/07, mostafa hamza <<a href="mailto:firstname.lastname@example.org">
email@example.com</a>> wrote:<br>> what i am developing right now is sending voice mail through jabber. the<br>> message is just for 20 seconds. i was trying to send it as a body in a<br>> message. i send it as an array of bytes. at the other side when i print
<br>> these bytes i got them totally different (most of the characters are<br>> question marks). could anybody help me in that problem?<br><br>Messages MUST be utf-8 encoded, so you'll find you can't just dump
<br>your binary bits in the message. Rather base64 encode the data,<br>before putting it into the packet, and decode it on the other side.<br><br>Of course it goes without saying that you should be using XEP-0047 or<br>even XEP-0065.
<br><br>--<br>- Norman Rasmussen<br> - Email: <a href="mailto:firstname.lastname@example.org">email@example.com</a><br> - Home page: <a href="http://norman.rasmussen.co.za/">http://norman.rasmussen.co.za/</a><br></blockquote>
</div><br><br clear="all"><br>-- <br>.......H.A.M.Z.A.W.E.Y.......