dcsimg

How do I get the size of a message that I am going to send? The getSize() method works fine with received message but returns -1 if I use it with a message that I am going to send!

fernando fernandes

Get the InputStream for the message with getInputStream() and count the bytes.