I have am mutable image which was captured as a screen shot.. I want to send that image as MMS, So i need to convert that image into byte of Arrays.....
Can anyone provide me a possible solution for the same...
i have written the below code but it gives the memory exceeds problem..: Can anyone please suggest me..
( And please forgive the lack of correct terminology , if any)int rawInt=new int[targetImage.getWidth()*targetImage.getHeight()];
ByteArrayOutputStream baos=new ByteArrayOutputStream();
message.addMessagePart(new MessagePart(byteData, 0, byteData.length, "image/png", "card", "card image", null));