Below is the data decoded by the function we talked above (
http://www.pstruh.cz/tips/detpg_Base64/ )
Now this is almost a mail message with attachment(s). No, there can be
some different files too not just images. but most probably it will
include image(s). There might be more than one too.
You can see example of what we get at
http://pakitfriends.com/mms.xml
infact this kind of file is sent to our webpage with POST method. we
have done XML parsing part and have extracted the MMS data in a
variable. Now we suppose Decoding is correctly done by that code.
* We dont know the name of the image(s)
* yes, we want to save the attachment(s)
********** Decoded Data ***********
MIME-Version: 1.0
Subject:
From: +447796170669
To: +447719336699
Mxtelecom-Id: 15881964
Date: 2004-06-18 21:28:13
Content-Transfer-Encoding: binary
Content-Type: multipart/related;
boundary="F3X/kupo3+S3vrIYnnksMQAAAAM="; start="<mms.smil>";
type="application/smil"
--F3X/kupo3+S3vrIYnnksMQAAAAM=
Content-Type: application/smil; name=mms.smil
Content-Id: <mms.smil>
Content-Transfer-Encoding: 7bit
<smil>
<body>
<par dur="5s">
<ref src="t0" />
</par>
<par dur="5s">
<text src="t1%3At1.txt" />
</par>
<par dur="5s">
<img src="i1%3ATeifi.jpg" />
</par>
</body>
</smil>
--F3X/kupo3+S3vrIYnnksMQAAAAM=
Content-Type: application/smil; name=t0
Content-Transfer-Encoding: binary
Content-Id: <t0>
<smil>
<head>
<layout>
<root-layout height="127" width="111"/>
<region id="Image" top="50%" left="0%" height="50%" width="100%"/>
<region id="Text" top="0%" left="0%" height="50%" width="100%"/>
</layout>
</head>
<body>
<par dur="60000ms">
<text src="cid:t1:t1.txt" region="Text"/>
<img src="cid:i1:Teifi.jpg" region="Image"/>
</par>
</body>
</smil>
--F3X/kupo3+S3vrIYnnksMQAAAAM=
Content-Type: text/plain; name=t1%3At1.txt
Content-Location: t1%3At1.txt
Apicheck
--F3X/kupo3+S3vrIYnnksMQAAAAM=
Content-Type: image/jpeg; name=i1%3ATeifi.jpg
Content-Transfer-Encoding: binary
Content-Location: i1%3ATeifi.jpg
ÿØÿáExif
*****************************