Even though you have assigned encodeResults false, you should still
display the image with ENCODING=NONE, as in:

<@VAR local$GIF ENCODING=NONE>

Also, be sure your TAF doesn't output anything before the GIF.  Don't
forget that Tango meta tags leave whitespace untouched.

On Wed, 4 Sep 2002, James MacFarlane wrote:

> Jon,
> 
> Here's what I get back on the .taf page. The html page that calls the image
> displays as broken.
> 
> Content-Type: image/gif Content-length: 43 HTTP/1.0 200 OK Content-Type:
> image/gif Content-length: 43 GIF89a!y,D;
> 
> I think I'm missing something.
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jon Grieve
> Sent: Wednesday, September 04, 2002 10:09 AM
> To: Multiple recipients of list witango-talk
> Subject: RE: Witango-Talk: Spoofing MIME headers
> 
> James,
> 
> Here's some code...
> 
> <@ASSIGN local$GIF {whatever}>
> <@ASSIGN local$encodeResults VALUE="false">
> <@ASSIGN local$httpHeader 'HTTP/1.0 200 OK<@CRLF>
> Content-Type: image/gif<@CRLF>
> Content-length: <@LENGTH <@VAR local$GIF>><@CRLF>
> <@SETCOOKIES><@USERREFERENCECOOKIE><@CRLF>'>
> <@VAR local$GIF>
> 
> I've broken it into separate lines to make it more readable.  Normally, I'd
> have the entire thing in a single action on a single line.
> 
> Regards,
> Jon
> 
> 
> 
> 
> -----Original Message-----
> From: James MacFarlane [mailto:[EMAIL PROTECTED]]
> Sent: 04 September 2002 2:46
> To: Multiple recipients of list witango-talk
> Subject: Witango-Talk: Spoofing MIME headers
> 
> 
> I have an application where the source of an image points to a .taf file. I
> want to log the fact that the image has been viewed and then send out the
> MIME header and the contents of the image.
> 
> I've done this with asp using  <% Response.ContentType = "image/gif" %> but
> I don't know what the Tango equivalent is.
> 
> - James.
> 
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
> 
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
> 

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to