Hi all,---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listI'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 store it in the actual template.Can this be done? How does 'binarybody' work, i.e. can I pass Base64 data to it somehow?Code so far is:[text]binaryFile=[decrypt method=Base64]base_64_encode_of_image[/decrypt][/text][text]line_ending=%0D%0A[/text][returnRaw binarybody=[binaryFile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: image/gif[unurl][line_ending][/unurl][!][/!][/returnraw]Thanks- Tom.To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
|
Hi all,---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listI'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 store it in the actual template.Can this be done? How does 'binarybody' work, i.e. can I pass Base64 data to it somehow?Code so far is:[text]binaryFile=[decrypt method=Base64]base_64_encode_of_image[/decrypt][/text][text]line_ending=%0D%0A[/text][/!][/returnraw]Thanks- Tom.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...