|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Cannot View jpg's when called from IMG tag
Hello,
I am having problems getting jpg's to open in WAP. The script opens wbmp files fine. I can open the jpg's fine in a html browser. I cant get this very simple script to work: Code:
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Welcome">
<p align="center">
Juicy Studio<br/>
<img src="../pictures/contacts/ZTAE.jpg" /><br/>
W@P
</p>
</card>
</wml>
Do I need to set up apache, or am I missing something vital for jpgs to be viewed on a WAP phone? Any help would be most appreciated. Thanks |
|
#2
|
||||
|
||||
|
What are you using to view the pages?
Does the viewer support jpegs? Where are the images hosted? If they are on *nix, then they are case SenSetive - make sure the image is called what you think it is..
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#3
|
||||
|
||||
|
It might be down to the phone being arkward...... You might have to make a script call the image then echo it out with a content disposition download header, I know you need this to make it work on some Motorola phones possibly others.
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#5
|
||||
|
||||
|
Hey Goose, I see you use TelcoPay on there too! Cool.
What do you think to it? |
|
#6
|
||||
|
||||
|
As for the alt tag I'm not sure that will work, I'm sure that having a back end script process this with a content disposition header will work though, well that's what the guy from Three told me when we were testing out integration with them for content downloads....
|
|
#7
|
||||
|
||||
|
Hi Andymoo it seems good, not to many problems.
I've found with the alt tag, sometimes without it I've had image problems, with mobiles not loading the page, saying it's invalid. It's a longshot but it maybe that simple. |
|
#8
|
||||
|
||||
|
Simple longshots are often enough the solution to things though!
Good to hear your like TelcoPay - we've been with them a while now, they said they were going to get the UK on but it was a matter of them integrating with Vofafone's M-Pay and Orange's Kiosk first - I'll look forward to that going live! Are there any other WAP based payment solutions you know about - I'd like to know as they come in handy! Any way to monetise our WAP traffic is welcome! |
|
#9
|
|||
|
|||
|
Hi,
I have been testing it on the S40 DP 2.0 SDK 1.1 OS - Win2000 It can't be the alt tag, as it is already present. It can't be the url as it is c:\ZTAE.jpg and the file is definitely there. Code:
This is the Traffic log: Request: http://localhost/basekramer/main/pictures/allphones.php Location = [http://localhost/basekramer/main/pictures/allphones.php] Request Method = [GET] Headers (3) Accept = [ application/vnd.wap.wmlscriptc, text/vnd.wap.wml, application/vnd.wap.xhtml+xml, application/xhtml+xml, text/html, multipart/mixed, */*] Accept-Charset = [ ISO-8859-1, US-ASCII, UTF-8; q=0.8, ISO-10646-UCS-2; q=0.6] Accept-Language = [ en] Response: 344 bytes, text/vnd.wap.wml; ISO-8859-1 Request Status = 200: "OK" Location = [http://localhost/basekramer/main/pictures/allphones.php] Content Data: 344 bytes, text/vnd.wap.wml; ISO-8859-1 <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org//DTD//wml_1.1.xml"> <wml> <card> <p mode="nowrap"> <img src='C:\ZTAE.jpg' alt='If you cant view this photo please contact help@smscontax.com quoting messageid: ' height='143' width='174'> </p> </card> </wml> Headers (7) Date = [ Wed, 15 Jun 2005 18:27:11 GMT] Server = [ Apache/2.0.45 (Win32)] X-Powered-By = [ PHP/4.3.1] Keep-Alive = [ timeout=15, max=100] Connection = [ Keep-Alive] Transfer-Encoding = [ chunked] Content-Type = [ text/vnd.wap.wml] Is there anything from the above you can see whats wrong? Thanks |
|
#10
|
||||
|
||||
|
Code:
<img src='C:\ZTAE.jpg' alt='If you cant view this photo please contact help@smscontax.com quoting messageid: ' height='143' width='174'> You should really use double quotes methinks, and you definately need a closing /. |
|
#11
|
|||
|
|||
|
Thank you for the tips, however I have now replaced the line in question with:
Code:
<img src="C:\ZTAE.jpg" alt="If you cant view this photo please contact help@smscontax.com quoting messageid: " height="143" width="174" /> and still no joy. Is it something to do with the headers, do I need to specify that the content will be a jpg, as in the request headers it says to accept Code:
Accept = [ application/vnd.wap.wmlscriptc, text/vnd.wap.wml, application/vnd.wap.xhtml+xml, application/xhtml+xml, text/html, multipart/mixed, */*] Code:
Content-Type = [ text/vnd.wap.wml] No mention of jpg again. Is this correct? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Cannot View jpg's when called from IMG tag |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|