texte = --047d7b414222866d1f04e243b6d6Content-Type: text/plain; charset=UTF-8Hi all,I'm trying to store an image in binary (i.e. Base64 encoded) format andthen serve it out using [returnraw] - basically I want to avoid having toplace the image into a folder on the server, rather store it in the actualtemplate.Can this be done? How does 'binarybody' work, i.e. can I pass Base64 datato it somehow?Code so far is:[text]binaryFile=[decryptmethod=Base64]base_64_encode_of_image[/decrypt][/text][text]line_ending=%0D%0A[/text][returnRaw binarybody=[binaryFile]]HTTP/1.0 200OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: image/gif[unurl][line_ending][/unurl][!][/!][/returnraw]Thanks- Tom--047d7b414222866d1f04e243b6d6Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printable
Hi all,
I'm trying to store an image in binary (i.e. Base64= encoded) format and then serve it out using [returnraw] - basically I want= to avoid having to place the image into a folder on the server, rather sto=re it in the actual template.
Can this be done? =C2=A0 How does 'binarybody' =work, i.e. can I pass Base64 data to it somehow?
C=ode so far is:
[text]binaryFil=e=3D[decrypt method=3DBase64]base_64_encode_of_image[/decrypt][/text]
[text]line_ending=3D%0D%0A[/text]
<=div>
[returnRaw binarybody=3D[binaryFile]]HTTP/1.0 200 OK[unu=rl][line_ending][/unurl][!]
[/!]Status: 200[unurl]=[line_ending][/unurl][!]
[/!]Content-Type: image/gif[unurl][line_ending][/unurl]=[!]
[/!][/returnraw]