04-04-2012 04:34 PM
I am trying to get the image from the captured MMS messages, but I only get the content type, number and a address from the byte[].
How can I get the actual image?
Here is the byte[] in base64 that I received from BinaryMessage:
AQYnYXBwbGljYXRpb24vdm5kLndhcC5tbXMtbWVzc2FnZQCvhI
I use the following code to capture the messages.
if(TextMessage.class.isAssignableFrom(msg.getClass
{
TextMessage tmsg = (TextMessage)msg;
}
else if(MultipartMessage.class.isAssignableFrom(msg.get
{
MultipartMessage mmsg = (MultipartMessage)msg;
ProcessMultiPartMsg(mmsg);
}
else if(BinaryMessage.class.isAssignableFrom(msg.getCla
{
BinaryMessage bmsg = (BinaryMessage)msg;
// how to retrieve image from 'bmsg'
}
Please help.
04-05-2012 10:12 AM
anybody have any idea how can I achieve this?
-SA
04-05-2012 10:17 AM
04-05-2012 10:41 AM
Thanks. At least someone there on this forum.
First of all, here is the decoded string:
'application/vnd.wap.mms-message�¯„‚´„Œ‚˜E5040
I see some information here but don't know where is the image data or how to get the image data? I called the url (http://198.228.238.58:8007/04042014307000150000200
-SA
04-05-2012 10:56 AM