Re: [WebDNA] ReturnRaw and binarybody

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110518
interpreted = N
texte = --047d7b5da5bbe4056d04e247f8b5 Content-Type: text/plain; charset=UTF-8 Stuart, Hi - 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 [!] [/!][!] ------------------------------------ ### 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] --047d7b5da5bbe4056d04e247f8b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Stuart,

Hi - last post on this I promis= e. =C2=A0 I just got there using a [shell] script as you were suggesting. = =C2=A0 Final code is below, could be useful for any situation where an imag= e needs to be stored in a template.

- Tom



[!]<!-- HAS_= WEBDNA_TAGS -->
[/!][!]

= ------------------------= ------------
### =C2=A0Do process= ing stuff here =C2=A0###

[/!][!]
=
-----------------------------------= -
### =C2=A0Check for image and serve it out he= re =C2=A0###

[/!][showif [fileinfo= file=3Dblank.gif][exists][/fileinfo]=3DF][!]
[/!][text]blank-gif-base64=3DR0lGODlhAQABAIAAAP///wAAACH5BAE= AAAAALAAAAAABAAEAAAICRAEAOw=3D=3D[/text][!]
[/!][writefile file=3Dblank.gif][shell]echo [= blank-gif-base64] | base64 --decode[/shell][/writefile][!]
[/!][/showif][!]

[/!][text]crlf=3D[unurl]%= 0D%0A[/unurl][/text][!]

[/!][ret= urnRaw binarybody=3Dblank.gif]HTTP/1.0 200 OK[crlf][!]

[/!]Status: 200[crlf][!]

[/!]Content-Type: image/g= if[crlf][crlf][!]

[/!][/re= turnraw]




--047d7b5da5bbe4056d04e247f8b5-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  2. Re: [WebDNA] ReturnRaw and binarybody (Tom Duke 2013)
  3. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  4. Re: [WebDNA] ReturnRaw and binarybody (Tom Duke 2013)
  5. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  6. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  7. Re: [WebDNA] ReturnRaw and binarybody (Tom Duke 2013)
  8. Re: [WebDNA] ReturnRaw and binarybody (WebDNA 2013)
  9. [WebDNA] ReturnRaw and binarybody (Tom Duke 2013)
--047d7b5da5bbe4056d04e247f8b5 Content-Type: text/plain; charset=UTF-8 Stuart, Hi - 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 [!] [/!][!] ------------------------------------ ### 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] --047d7b5da5bbe4056d04e247f8b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Stuart,

Hi - last post on this I promis= e. =C2=A0 I just got there using a [shell] script as you were suggesting. = =C2=A0 Final code is below, could be useful for any situation where an imag= e needs to be stored in a template.

- Tom



[!]<!-- HAS_= WEBDNA_TAGS -->
[/!][!]

= ------------------------= ------------
### =C2=A0Do process= ing stuff here =C2=A0###

[/!][!]
=
-----------------------------------= -
### =C2=A0Check for image and serve it out he= re =C2=A0###

[/!][showif [fileinfo= file=3Dblank.gif][exists][/fileinfo]=3DF][!]
[/!][text]blank-gif-base64=3DR0lGODlhAQABAIAAAP///wAAACH5BAE= AAAAALAAAAAABAAEAAAICRAEAOw=3D=3D[/text][!]
[/!][writefile file=3Dblank.gif][shell]echo [= blank-gif-base64] | base64 --decode[/shell][/writefile][!]
[/!][/showif][!]

[/!][text]crlf=3D[unurl]%= 0D%0A[/unurl][/text][!]

[/!][ret= urnRaw binarybody=3Dblank.gif]HTTP/1.0 200 OK[crlf][!]

[/!]Status: 200[crlf][!]

[/!]Content-Type: image/g= if[crlf][crlf][!]

[/!][/re= turnraw]




--047d7b5da5bbe4056d04e247f8b5-- Tom Duke

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: textA and Title? (1997) [append] vs. [appendfile] delta + question? (1997) Forcing Paragraph Breaks on Results (1998) [delete] problem (1997) Explorer 3.0/ Access Denied! (1997) notification solutions (1997) Processing all html files through WebCat or Typhoon (1998) 4.5 Upgrade (2003) Calendar Snippet Problems (1998) Webcatalog/NT dbserver crashing. (2000) OT: create a KDE Screen Saver for Linux (2003) [WebDNA] WebDNA and MAMP/Apache (Mac) (2018) August 15th WebDNA Chat Transcript (2002) How to Sort Summ data ? (1997) Running _every_ page through WebCat ? (1997) Netscape v. IE (1997) RE: [WebDNA] HTML [sendmail] revisited (2009) Using Plug-In while running 1.6.1 (1997) PSC recommends what date format yr 2000??? (1997) Duplicate Messages (1998)