How to show a png image in a wml

How to show a png image in a wml SearchSearch
Author Message
jennyyuan
New member
Username: Jennyyuan

Post Number: 1
Registered: 03-2004
Posted on Tuesday, March 02, 2004 - 08:29 am:   

<?xml version="1.0" encoding = "UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="redstar" >
<p>
<img src="bird2.png" alt="kk" />
</p>
<do type="prev" label="Back"><prev/></do>
</card>
</wml>

the above is all my test file,and th e bird2.png is less than 1k,I can show the bird2.png in a openwaver5.1 and some nokia mobile, but I cant show it in most other mobile, who can tell me the reason? thanks
Kent Williams
Moderator
Username: Kent

Post Number: 48
Registered: 10-2003
Posted on Thursday, March 18, 2004 - 06:14 pm:   

Well, not all phones support PNG files.

The "Accept:" header should give you some indication of what content types the phone supports. However, some devices specify a wildcard accept of "*/*" which means that they will accept any content ... and of course, that does not mean that they understand it.

Anyway, PNG is not yet very widely supported by current mobile phones.

If you are curious about content types supported by different phones, you may want to look at the WAP User-Agent profile (UAProf) for the phone. A URL pointer to the User-Agent profile is usually returned in the "Profile:" or "X-WAP-Profile:" header. You can find a good repository of these profiles at the following web site:

http://www.w3development.de/rdf/uaprof_repository/


--
Kent Williams
Now Wireless Support