Stuart,---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listHi - last post on this I promise. I just got there using a [shell] script as you were suggesting. Final code is below, could be useful for any situation where an image needs to be stored in a template.- Tom[!]<!-- HAS_WEBDNA_TAGS -->[/!][!]------------------------------------### Do processing stuff here ###[/!][!]------------------------------------### Check for image and serve it out here ###[/!][showif [fileinfo file=blank.gif][exists][/fileinfo]=F][!][/!][text]blank-gif-base64=R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==[/text][!][/!][writefile file=blank.gif][shell]echo [blank-gif-base64] | base64 --decode[/shell][/writefile][!][/!][/showif][!][/!][text]crlf=[unurl]%0D%0A[/unurl][/text][!][/!][returnRaw binarybody=blank.gif]HTTP/1.0 200 OK[crlf][!][/!]Status: 200[crlf][!][/!]Content-Type: image/gif[crlf][crlf][!][/!][/returnraw].To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
|
Stuart,---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listHi - last post on this I promise. I just got there using a [shell] script as you were suggesting. Final code is below, could be useful for any situation where an image needs to be stored in a template.- Tom[!]<!-- HAS_WEBDNA_TAGS -->[/!][!]------------------------------------### Do processing stuff here ###[/!][!]------------------------------------### Check for image and serve it out here ###[/!][showif [fileinfo file=blank.gif][exists][/fileinfo]=F][!][/!][writefile file=blank.gif][shell]echo [blank-gif-base64] | base64 --decode[/shell][/writefile][!][/!][/showif][!][/!][returnRaw binarybody=blank.gif]HTTP/1.0 200 OK[crlf][!][/!]Status: 200[crlf][!][/!]Content-Type: image/gif[crlf][crlf][!][/!][/returnraw].To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
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...