Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serving image from cgi script
Message
From
28/08/1997 10:18:43
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00047126
Message ID:
00047334
Views:
29
>>>Hi all... What I have here is a new Logo for the University, which we would like to get out on the web for people who license the trademark for their products. I have a username/password script which works fine.
>>>
>>>What I want to do is have the script serve out the image itself (not a document with a link to the image). The point is, I don't want the image to live anywhere on the server permanently.
>>>
>>>I'm using MS Visual C++ 5.0 for the script. I get a 110X110 pixel image (which is the proper size), but no image shows. I send the mime type at the head of the transmission.
>>>
>>>Is there a footer the server sends along? Something else I'm missing? Anyone know anybody who's tried this?
>>
>>You need to use this syntax:
>>
>>'Location: http://www.yourweb.com/graphic.gif'+CHR(10)+CHR(10)
>
>
>I'm confused... where do I put that? After the 'content-type'? at the end?

No, this is the HTTP header you will return from the process you'll do. That's all. So, if you have a page having an IMG SRC=http://www.myserver.com/cgi-bin/myprocess.exe, returning that code will put the image in it when the user will load the page. See my article here "Using Visual FoxPro as an Internet resource". This will give you the example on how to do this.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform