Does anyone know how to decode the embedded images that you find in WAP web pages? I need a description of the encoding that is used for at least "8bit" encoded images such as GIFs and Jpegs.

At the moment I am only able to dump the images' encoded data into a file but I need to be able to decode it in order to view the image within a custom browser.

Any ideas?

PS the MIME spec is no help on the matter, it is vague to the point of uselessness.