including an image through WebDNA
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61436
interpreted = N
texte = 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:
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/
"Dennis J. Bonsall, Jr."
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:
Re:2nd WebCatalog2 Feature Request (1996)
Re1000001: Setting up shop (1997)
FlushDatabase Suggestion (1998)
[OT] Form POSTing with LONG variable (2007)
Mac Typhoon, WebCatalog Plugins Work Better With FireSite Now (1998)
PCS Frames (1997)
SMSI - MacWorld (2005)
variable value locked when passed to include (2001)
[ConvertChars] problem (1997)
Disappearing data (2002)
Search as error page (2002)
[WebDNA] Webstar (2008)
Error Lob.db records error message not name (1997)
Tenon and PCS Partner (1998)
[WebDNA] v7 with SSL (2012)
Physical Security for WebCatalog Directories (1997)
Setting vars in a text file..... (2004)
[WebDNA] OS X mail server (2009)
$Append for Users outside the ADMIN group (1997)
Netscape (2002)