Date:  01/16/2010 10:03:08 AM Msg ID:  004108
From:  FoxWeb Support Thread:  004107
Subject:  Re: I need example please!
There's no way to return both the page (HTML) and the image content with a single HTTP response. This means that if you want to stream the image, you will have to get your program to return the HTML content, with a link pointing to another fwx script, which will generate the image file on the fly. The URL passed to this second script (the text inside the src attribute of the img element) must contain query string variables with all the necessary information for generating the image, such as the textual content of the captcha.
 
Take a look at the Returning Non HTML Content section of the Returning Content to the Browser topic in the FoxWeb documentation on details. The download.fwx sample that comes with FoxWeb contains some relevant sample code.
FoxWeb Support Team
support@foxweb.com email
Sent by Ali Koumaiha on 01/16/2010 09:41:47 AM:
I have created an Image in vfp backend to create captcha image in my class (prg).

i have the image, but, i do not wish to save it..

i want to stream it within my fwx codes.

can you give me an example of how to do that please?

this is sample of my code...
<html>
 <body>
  <input type="text" name="bla">
  <%
    lcImg  = oPortal.Captcha()
    lcText = substr(lcImg,1,8)
  %>
  <img border="1" src="/<%=lcImg%>">
 </body>
</html>

that puts the image on my inetpub/wwwroot

however, i do not wish to keep saving these tons of captcha images, rather, i want to stream it within the fwx code to the brower...