SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 172 | Next

Nirav Mehta

"Mobile Web Development"


5. We can save the information in a database and display it to our visitors in a
special "You Said It!" section!
What Just Happened: Decoding the MMS Message
The MMSDecoder class checks the message data??”processing all the headers and
their values. After it has processed all headers, it checks the content type of the
message??”multipart related or multipart mixed, and handles the parts accordingly.
The library includes an MMSPart class that stores data of each part.
Each part has a content type. We check that and save it if it's an image. We store the
saved image name in a variable, so that we can skip processing other images in the
message. If you want to save all images from a message, you can use an array to
store all image file names and append a counter variable to the name to ensure they
don't get overwritten.
We take the first text message into a variable, and save it to the table directly. We
have not implemented database operations here, but they are easy to add.
Note that the library does not yet support getting the name of the file in MMS. If
you want to know the name of the media file, you will have to hack the decode code
yourself! You can also check for a SMIL file in the message, and guess file names
based on the SMIL file data.


Pages:
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6