Re: including an image through WebDNA

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61437
interpreted = N
texte = Don't include the image, redirect to it. Sincerely, Kenneth Grome www.kengrome.com >I am attempting to serve an image in place of a tpl file, but am not >having any success. I have set the Content-Type mime header to >image/gif, and am including the file through an [include] tag with >"&raw=T" set. However, only about the first 7 bytes are served. >Thinking that perhaps WebDNA just cannot serve a .gif file, I tried >using a shell script to pull the file using "cat". However, instead >of the file expected, I am getting the contents of a WebStar XML >preferences file from elsewhere on the server (the paths to the two >files couldn't be more different). However, when using this >command, the Content-Length is exact at 1025 bytes. But the file >served is wrong. > >Is there any way I can achieve my goal? I am attempting to track an >image loaded through other sources. I am attempting to take a >request for a specific image file (in this case "view.gif"), and use >WebStar's modify rules to serve view.tpl in its place. Once all >code is rendered on view.tpl, I wanted to include the view.gif file, >so that what was requested is what was served. But, I cannot seem >to get WebDNA to serve the image file. > >Any suggestions or assistance would be appreciated. > >Thanks, >Dennis -- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: including an image through WebDNA ( Kenneth Grome 2005)
  2. Re: including an image through WebDNA ( William DeVaul 2005)
  3. Re: including an image through WebDNA ( Kenneth Grome 2005)
  4. including an image through WebDNA ( "Dennis J. Bonsall, Jr." 2005)
Don't include the image, redirect to it. Sincerely, Kenneth Grome www.kengrome.com >I am attempting to serve an image in place of a tpl file, but am not >having any success. I have set the Content-Type mime header to >image/gif, and am including the file through an [include] tag with >"&raw=T" set. However, only about the first 7 bytes are served. >Thinking that perhaps WebDNA just cannot serve a .gif file, I tried >using a shell script to pull the file using "cat". However, instead >of the file expected, I am getting the contents of a WebStar XML >preferences file from elsewhere on the server (the paths to the two >files couldn't be more different). However, when using this >command, the Content-Length is exact at 1025 bytes. But the file >served is wrong. > >Is there any way I can achieve my goal? I am attempting to track an >image loaded through other sources. I am attempting to take a >request for a specific image file (in this case "view.gif"), and use >WebStar's modify rules to serve view.tpl in its place. Once all >code is rendered on view.tpl, I wanted to include the view.gif file, >so that what was requested is what was served. But, I cannot seem >to get WebDNA to serve the image file. > >Any suggestions or assistance would be appreciated. > >Thanks, >Dennis -- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Enhancement Request for WebCatalog-NT (1996) HomePage Caution (1997) adding up in a db (1997) What am I missing (1997) webcat NT with [dos] command (1997) RE: strip .0 off off IPaddress (1999) SetHeader (1997) Total found of each unique field (2003) [WebDNA] 301 redirect (2010) using showpage and showcart commands (1996) Multiple catalog databases and showcart (1997) re: keep W* in front applescript? (try Cron) (1998) automating a POST (2002) Writing [raw] to a file (2000) Slightly OT: Regex and Date Modified/Created (2002) Authenticate (1997) SMSI (Scott) clues?? Bug fixes for next WebDNA release (2005) Security Question (1997) [WebDNA] My SQL will not Connect (Solved) (2020) WebCatalog 4.0 has been released! (2000)