Hi all

I am creating an mms file as follows

the code is given below


MMMessage mm= new MMMessage();



mm.setVersion(IMMConstants.MMS_VERSION_10);
mm.setMessageType(IMMConstants.MESSAGE_TYPE_M_SEND_REQ);
mm.setTransactionId("000001");
mm.setDate(new Date(System.currentTimeMillis()));
mm.setFrom("+358990000003/TYPE=PLMN");
mm.addToAddress("+358990000005/TYPE=PLMN");
mm.addCcAddress("+358990000003/TYPE=PLMN");
mm.setSubject("Hello guys !");
mm.setMessageClass(IMMConstants.MESSAGE_CLASS_AUTO);
mm.setPriority(IMMConstants.PRIORITY_HIGH);

mm.setContentType(IMMConstants.CT_APPLICATION_MULTIPART_MIXED);//+";type="+IMMConstants.CT_APPLICATION_SMIL+";start=<0000>");
mm.setMultipartRelatedType(IMMConstants.CT_APPLICATION_SMIL);
mm.setPresentationId("<0>");
MMContent part1 = new MMContent();





FileInputStream _fin = new FileInputStream("D:\\samples\\cats.smil");
int k = _fin.available();
byte[] n = new byte[k];
_fin.read(n,0,k);
part1.setContent(n,0,n.length);
part1.setContentId("<0>");
part1.setType(IMMConstants.CT_APPLICATION_SMIL);
mm.addContent(part1);

MMContent part2 = new MMContent();

_fin = null;
_fin = new FileInputStream("D:\\samples\\cats.gif");
k = _fin.available();
n = new byte[k];
_fin.read(n,0,k);
part2.setContent(n,0,n.length);
part2.setContentId("cats.gif");
part2.setType(IMMConstants.CT_IMAGE_GIF);

mm.addContent(part2);


MMContent part3 = new MMContent();


_fin = null;
_fin = new FileInputStream("D:\\samples\\cats.txt");
k = _fin.available();
n = new byte[k];
_fin.read(n,0,k);
part3.setContent(n,0,k);
part3.setContentId("cats.txt");
part3.setType(IMMConstants.CT_TEXT_PLAIN);
mm.addContent(part3);

FileOutputStream _o = new FileOutputStream("c:\\3.mms");


MMEncoder encoder = new MMEncoder();
encoder.setMessage(mm);

encoder.encodeMessage();
_o.write(encoder.getMessage());
_o.flush();
_o.close();

}

it writes an mms file but the file opens in the player..but doesn't display anything..it just plays for 5 seconds without displaying anything..


The smile part is this


<smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language">
<head>
<meta name="title" content="Welcome to Adobe GoLive 6 SMIL Authoring Suite"/>
<meta name="author" content=""/>
<meta name="copyright" content=""/>
<meta name="abstract" content=""/>
<layout>
<root-layout width="320" height="240" title="Welcome to Adobe GoLive 6 SMIL Authoring Suite"/>
<region id="id_32A85AFC2" height="80px" width="80px" left="112px" top="32px"/>
<region id="id_32B36A494" height="48px" width="160px" left="80px" top="144px"/>
</layout>
</head>

<body>
<par>
<img region="id_32A85AFC2" src="cats.gif" end="5s"/>
<text region="id_32B36A494" src="cats.txt" end="5s"/>
</par>
</body>
</smil>






can any one help???