Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying .ico files in browser
Message
De
07/05/2001 18:03:23
 
 
À
07/05/2001 17:23:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00504434
Message ID:
00504462
Vues:
21
>>>I have a lot of .ico files and want to show them in Browser.
>>>
>>>Internet Explorer 5 displays .bmp files if I return them
>>>using http
>>>
>>>Content-type: image/bmp
>>>
>>>header from web server.
>>>
>>>However IE will not disply .ico files if I use
>>>Content-type: image/ico
>>>http header .
>>>
>>>Is it possible to display .ico files in browser ?
>>>
>>>
>>>
>>>usin e a http Content-Type igab
>>
>>Hi,
>>
>>Try "image/x-icon" instead of just "image/icon".
>
>This does not work.
>I tried the following command in my webserver dataarrival event:
>
>this.SendData("HTTP/1.0 200 OK" + chr(13)+chr(10) + ;
> "Content-Type: image/x-icon" + chr(13)+chr(10) + ;
> chr(13)+chr(10) + ;
> FILETOSTR('myico.ico') )
>
>But IE displays an empty box instead of displaying ico file.

Well, in such case try to use "Content-Type: text/html" and simple IMG tag.
<IMG SRC="myico.ico">
Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform